Every programming language requires variables, assignments and operations but even these basic facilities differ from Fortran to C and from Perl to Python. This module covers these fundamental facilities in Python, as well as keyboard input, screen output, and how to add comments to yur Python.
This topic is presented on public course
Python Programming
Examples from our training material
| cli | Running a python program without having to type in "python" every time |
| comment.py | Commenting your program |
| const.py | Constants in Python |
| constr.py | Constant Strings |
| i2.py | input with built in coercion |
| inout.py | raw input |
| oper.py | Maths operations in Python |
| pout.py | More about print statements |
| pygo | Deleting a variable v deleting its contents |
| repo.py | Operator precedence in Python |
| tqs.py | Strings several lines long |
| y102a | Answer to end of module exercise |
| yraw | input v raw_input |
Opentalk forum discussions related to this topic
Examples
Pictures
On a private Python course
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
Assignments and Data Types in Python.
Strings, Integer Real and Complex numbers.
Expressions and Operators.
Coercion and Conversion.
The print statement.
Input and raw_input.
Commenting your program.
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 600 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.