Exercises, examples and other material relating to training module Y300. This topic is presented on public courses
Learning to program in Python,
Python Programming
Python Programming - The fundamentals in depth, and an introduction to applications such as GUI design and Data Munging.
This course starts at the fundamentals ... http://www.wellho.net/course/ypfull.html [course] |
Learning to Program in Python - The fundamentals in depth, and an introduction to applications such as GUI design and Data Munging.
This course starts ... http://www.wellho.net/course/ylfull.html [course] |
#!/usr/local/bin/python3.0
print ("A program to add up some ages")
name = input("What is your name? ")
age1 = int(input("How old are you? "))
age2 = ... http://www.wellho.net/resources/ex.php4?item=y300/input_3.py [code sample] |
I have just posted a "steady as she goes" message, welcoming the new decade but reassuring our customers that we're carrying on offering very much the ... http://www.wellho.net/mouth/2559_Mov ... n-too.html [short article] |
#!/usr/local/bin/python3.0
import sys
teeth = "white"
coal = "black"
# print is a function
# You can supply a sep value as the separator
# You can supply ... http://www.wellho.net/resources/ex.php4?item=y300/print_3.py [code sample] |
Usually, the release number of a programming language that's used on a 'first level' course doesn't make a big difference as the changes tend to be quite ... http://www.wellho.net/mouth/2277_Pyt ... n-on-.html [short article] |
A couple of days ago, I mentioned Python 3 in general terms - and today I'm starting to flesh out the road ahead.
print
The print operator in Python ... http://www.wellho.net/mouth/1791_The ... hon-3.html [short article] |
This topic is presented on public courses
Learning to program in Python,
Python Programming
Examples from our training material
| george | Integer v float arithmetic |
| git_2.py | Generator and xrange - Python 2 |
| git_3.py | Generator in Python 3, range replaces xrange |
| input_2.py | inputs in Python 2 |
| input_3.py | Inputs in Python 3 - input replaces raw_input |
| john | input and raw_input - Python 2 and Python 3 |
| london.2 | Python 2.6 for conversion to Python 3 |
| london.3 | Python 3 - converted from Python 2.6 example |
| print_2.py | print in python 2 |
| print_3.py | print in Python 3 - print now a function |
Background information
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
Introduction.
Why Python 3?
Print as a function.
Input changes.
Range and other iterators (map, etc).
nonlocal (compared to global).
New style classes.
Strings, bytes, unicode and string formatting.
Exceptions.
Other changes
A note on Decorators.
Version 2.6 and 2to3
A Strategy for upgrade.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses 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.