Exercises, examples and other material relating to training module Y199. This topic is presented on public courses %dj%, Intermediate Python
For experienced programmers (but new to Python) and for
delegates self-taught in Python too, this module whisks the
delegates through the underlying structure of common constructs
in the language, shows them the "Python way", and picks up on
any fundamental gaps in their initial knowledge.
Related technical and longer articlesPython Fast Start
|Articles and tips on this subject
|Equality (in Python)
"Equality" ... lovely subject. We're all equal in the eyes of many laws these days - man or workman, able bodied or not, young or old, left or right handed, any colour or religion. But just because we're equal doesn't mean we're the same.
In Python, the == operator returns True if the two parameters ...
|A reminder of the key issues to consider in moving from Python 2 to Python 3
1. New style classes take on the old style class format
But does it matter if you explicity inherit in Python 3??
2. print moves from being a keyword to a function
Single value tuple as parameter will work in both cases
You may also do a sys.stdout.write
3. integer ...
|Some gems from Intermediate Python
Last week, I ran a private Python Intermediate course - using Python 2.7 at customer request - and here are some of the code snippets I wrote in front of the class - little things I may not have blogged about in the past. Complete examples being emailed to the delegates!
# with keyw ...
|Some gems from an introduction to Python
This week, I ran a private Introduction to Python course - using Python 2.7 at customer request - and here are some of the code snippets I wrote in front of the class - little things I may not have blogged about in the past. Complete examples being emailed to the delegates!
# Using&nbs ...
|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 ...
|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:
Examples from our training material
| Fundamentals of Python - variables and output
| Fast start example 2 - inputs and strings
| for loop
| If, elif and else
| What are the keywords in Python?
| Sample data file used in source examples
| base and subclasses, decorator, data from file, factory
| While loop
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
What is Python, versions, implementations.
Code structure and Fundamentals.
Conditionals and loops.
Introduction to lists and Tuples.
Everything's an object.
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.