This Python course is designed for those people who have a desire or need to use the scripting language. It is suitable for someone who already has a scripting knowledge from another language, but can be suitable for beginners too. The course covers the basic structure, OO programming and making use of Python in situations such as web development and databases, and how to understand other modules.
If project work is a must then
WHO SHOULD ATTEND?
This course is intended for those of you who have had an introduction to another scripting language, have created some scripts on your own in another scripting languages, and have an idea of what they do. An understanding of a previous scripting language is not essential as this course can be taught to novices.
The course work is based around a 50/50 approach to lecture and hands on giving the attendee the chance to really work with the system and see its potential. Where possible the practical\'s will use real world examples and useful starting code that can be integrated into new or existing projects.
None, although a previous scripting language would help understand the language better.
DURATION: 4 DAYS
PRICE: Call for latest
1st Day: Start 9:30am - Finish 5:00pm
What is Python, how to get help about commands and modules, how to run Python scripts and how to write a simple script.
What are variables, naming conventions, data types, strings, numbers, and lists, interpolation, user input, and getting information from the environment.
Expressions and Operators
Operator overview, available operators, assignment, expression construction, string expressions, list expressions, list operators.
List methods, and how to use them, sorting, multi-dimensional lists, list manipulation, sets, dictionary objects and their operators.
If operator, comparators, nested conditions, memberships, multiple comparisons, chained comparisons, short-circuit.
What are loops, definite and indefinite, the available looping constructs, parallel lists, useful looping functions, exit early
What are built-ins, math, string, and other functions, string, list and dictionary methods.
File Handling and I/O
Command line arguments, command line options, working with stdin, stdout and stderr, open, close, reading and writing files, binary and text modes, formatted output.
Modules and packages
Function writing, passing parameters and returning values, what are modules, why use them, how to use modules and creating your own modules.
Concepts and terminology of OO, defining classes, creating and using objects, encapsulation, inheritance and class variables.
Dealing with errors, types of errors, handling exceptions and how to deal with errors you cannot predict.
What are they, where to use them, the character set, positioning, groups, and useful variables.
Working with Python
Working with operating system modules, creating and reading configuration files, extending Python into Java and C#.
Interacting with databases, connecting with specific vendor databases, the Python API for databases, SQLite.
Python CGI, configuring your web server, creating dynamic pages, form handling
Lots of examples and practical questions to give you a chance to try things out. Feel free to bring along your own ideas to try.