Python Programming
On this course students will learn the design philosophy and strengths of Python and run-time features assisting rapid development. You will be able to programme using loops, lists, variables and dictionaries. You will be able to use operators such as `and`, `in`, %, == and `is`. You will also be able to read and write data to files and use the % operator for string-formatting, be able to use existing Python modules and create new ones, use exceptions for error-handling and create Object-Oriented Python using the `class` keyword.
- Cost: Price on application
- Duration: 3 Days
- This course is not available as part of our public schedule but can be provided on a customised client specific basis.
Participants should be familiar with basic programming constructs such as variable assignment, conditions, loops and I/O. Programming experience in a procedural language such as C or Pascal, or an OO Language such as Java, C++. The more practical coding experience the better.
Command-Line Interpreter
Integer, Float, String
Basic operations (=, +, *, -, /, %)
Type conversations
Equality
Running a Python script
Providing command-line arguments
Syntax and indentation
List operations: creating, slicing, iterating
Range operation
String operations
Running a main routine in module
Calling a function from main
Calling a function from another module
Local and global variables, pass-by-value to function
Comments (#)
Different forms of import
PYTHONPATH
Calling functions with default arguments
For and While loops
Conditionals (if)
Exception handling
Creating and using tuple data objects
Creating and using dictionary data objects
References and copies (id, copy)
Type
Built-in operators (dir)
Reading from and writing to console (%)
Reading from and writing to file
The String Module
Module documentation (pydoc)
Randomization whrandom
Time/Date time
os, os.path
Mathematics math
thread
glob
unittest
StringIO
Classes and objects
Overriding built-in methods
Inheritance and polymorphism
Regular Expressions (re)
map
lambda
reduce
type conversations