Well House Consultants
You are on the site of
Well House Consultants
Open Source Training Courses
hotel accommodation. You are welcome to browse and use
our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Well House Manor Resources
Object Orientation and General topics
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
C and C++ Resources
Web and Intranet Resources
Python module Y050
Python - General
Exercises, examples and other material relating to training module Y050. This module is presented on Private Courses
and Specially Run Courses
Python is an object oriented scripting
language that's got very wide use in data
processing for Internet and non-Internet
Related technical and longer articlesPython Fast Start
|Articles and tips on this subject||updated|
|3935||Whether you have programmed before or not, we can teach you Python|
Our new "Intermediate Python" course last week was a roaring success - rave reviews from the delegates, with a real opportunity to delve deeper for the delegates who all had prior (self-taught) Python experience and really want to make the most of the language in their work. It was very interesting ...
|3911||How well do you know Perl and / or Python?|
Test your Perl knowledge
A simple little quiz that you may enjoy ... ten questions [here]. Questions good for any recent version of Perl 5 - say 5.10 and upwards, as the quiz tests your knowledge of some of the fundamentals.
The quiz was, of course, written for a purpose - to answer the question ...
|3903||Python Programming class for delegates who have already self-taught the basics|
It's quite possible to "self-teach" in Python, but to get the best from the language you need to appreciate its philosophy, the object oriented approach, and how the two work together, you really need something more formal. That way, you'll learn how to design, build, test and maintain code that performs ...
|3902||Shell - Grep - Sed - Awk - Perl - Python - which to use when?|
Last week, I found myself teaching a Multi-vendor Advanced Unix Data Tools and Techniques course as a guest presenter. The tools that the course 'majored' on are grep, sed, awk and Perl ... being an advanced course, some knowledge was assumed ahead of time, and so reference was made to other utilities ...
|3816||Want to escape the Olympics? Learn to program in the countryside!|
It's still a few days to go before the Olympics open, and I'm already reading of long traffic jams in London, various strikes planned at or near to the events by transport unions, and starting to hear wall to wall coverage of sport and sporting teams on the radio, and see it on the TV and in the paper ...
|3798||When you should use Object Orientation even in a short program - Python example|
I was training earlier this week in a room with a view - a view of a major link road towards Cambridge City centre, and I was struck by the very different mix of vehicles travelling along the road compared to what I would expect to see in Wiltshire. And - ever keen to have new, relevant data sets available ...
|2020||Learning Python - many new example programs|
I ran a public Python course earlier this week ... and (as I usually do!) wrote a number of short examples during the class to show the delegates not only how something is done, but also how the coding process works and how the particular answers are developed. I can't show you that process here on ...
|3463||Busy weekend of contrasts.|
A busy weekend after a busy week. And already it's Monday morning again. 7 delegates on a Python course, currently (08:15 as I write) at breakfast at Well House Manor.
Saturday was a trip to Taunton ... for the twice-a-year meeting of Travel Watch South West, where representatives of user groups and ...
|3519||Python - current versions and implementations (CPython, Jython, IronPython etc)|
Python originated in 1988, I am told.
Think back to decisions YOU made in 1988, and they may have been good ones at the time. But it's likely that a good decision such as "which camera would I buy" made NOW would come up with the same model. And it's the same thing with programming languages ...
|3489||Python courses and Private courses - gently updating our product to keep it ahead of the game|
It's remarkable how stable our courses and training have been over the years. After all, you don't want to learn to program in a language, and then invest significant resources in design and coding, if you're going to have to start again in a year or two! However, technologies do move on and languages ...
|3076||Python through the Snow|
Welcome to December ... just over three weeks to Christmas, and at this time of year I would usually be scrambling back through the archives for last year's pictures to add festive snow to some of my articles. But this year is different; the snow has come early, and it seems has caught everyone by surprise ...
|2822||Python training courses for use with ESRI ArcMap software|
It's not the first time I've been asked whether our course in Python covers ESRI / ArcMap software, and whether it's a suitable learning vehicle for Python for use that environment. On the basis that "twice asked is twenty times wondered", I'm posting the generalised question and answer here.
Q: I ...
|2017||Python - a truly dynamic language|
In Python everything is an object - and that includes functions which are objects which contain blocks of code. And this means that you can define different functions of the same name depending on a condition, and you can replace a function with another one too, if you want to.
This really is valid:
|2778||Learning to program in Python 2 ... and / or in Python 3|
Yesterday - "Learning to Program in Python" - and I'm now teaching the day so that it's both Python 2 and Python 3 compatible. But it's really an intro day, and we'll vary how we go for the following 3 days of the course, majoring in an appropriate direction for our group - that's a luxury we have when ...
|2504||Learning to program in ...|
These are bullet point topics to accompany the "Learning to program in ..." days which are available to complete novices in front of Well House Consultants programming courses. The day is presented using examples in PHP, Lua, Python, Ruby, C, C++, Tcl, Java or Perl as appropriate, with examples written ...
|2394||Two days of demonstration scripts in Python|
I've spent the last two days introducing Python to a group of nine delegates (and, naturally, enjoying doing so). As I usually do, I have wrote a lot of new examples to show not only how the language and programs work, but also the thought process behind writing them. At the delegate's request, I have ...
|2367||Learning to program - how to jump the first hurdles|
From last Sunday ... here are links to the examples of code that I wrote in front of the "Learning to Program in Python" delegates - to show them not only how a program works, but also how I (and other code authors) go from a requirement through to the code that actually does the job. Or, paraphrasing, ...
|2285||Great new diagrams for our notes ... Python releases|
When training, I project onto a white wall ... and I draw onto the projected image, and add extra notes and diagrams around the side too - after all, the whole wall is a whiteboard. Some of the diagrams and slides that I'll come up with are new / unique for an individual course, and I end up photographing ...
|2227||Learning PHP, Ruby, Lua and Python - upcoming courses|
The following programming courses are all booking well, but still have good availability:
PHP - starting 6th July
Ruby - starting 14th July
Lua - starting 10th August
Python - starting 17th August
Also Deploying LAMP (Linux, Apache httpd, MySQL, PHP/Perl) from 20th July. Can be taken as separate Linux ...
Off early this morning (leaving home at 6) to give a Python programming course. I was just catching up on an email correspondence a few minutes ago, and felt the need to explain that Python is a computer programming language ... otherwise I would get some very odd "looks". Mind you, the words "ball" ...
Examples from our training material
|accts|| First steps in Object definition and use|
|animals.py|| Sample class with test harness too|
|costings.py|| A file of functions for 'from' or 'import'|
|d2|| ways of looping through a list|
|darling.py|| file to be included to bring in application globals|
|dd|| loading functions from shared file|
|demo|| early python demonstration - using, re-using, copying variables|
|demo2|| first real application - simple calculation|
|demox|| How EVERYTHING is an object - even functions!|
|dfg.py|| Hiding algorithms in functions - 'encapsulation'|
|dooper|| A one-liner to print a file's contents|
|fd|| Some early list demonstrations!|
|fdo|| File read and write - program 'samples' every 10th line of a log file|
|filer|| Reading a file line by line (good for huge files)|
|grabbage|| Reading a web page 'as if it was a local file'|
|ld|| Lists, lists of lists, mutable and immutable|
|monty|| First 'real' application|
|neville|| Simple log file analysis|
|nuform|| Some examples of the % (string formatting) operator|
|ooe|| generatings lists of 365 elements to convert day of year to month and day|
|p4l|| Use of xrange rather than range to avoid huge intermediate lists|
|peeps|| Converting a file on disc to a list of objects in memory|
|pipo|| Running an operating system command via a pipe|
|re1|| Regular Expression to extract data from log file (and dictionary analyse)|
|rv1|| Using a generator to avoid a large intermediate list - control|
|sheep|| lists of functions, lambdas, callbacks (posh/flexible ways to use functions)|
|tupperware|| Trying to modify a tuple|
|wac|| Web Access Counter - parsing big data file|
|wool|| Generator function to prevent need for intermediate list|
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from http://www.training-notes.co.uk
Topics covered in this module
What is Python?
What is Python used for?
What sort of language is Python?
Is Python the right language for me?
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.