Objectives of the training
At the end of this course, participants will be able to create and modify Python scripts, use and develop modules, master object‑oriented programming, handle exceptions, manipulate files, and save data.Targeted audience
System administrators and advanced users, developersPrerequisite
Basic knowledge of computing and text file editing. Notions of programming and algorithms, ideally with experience in programming in other languages. Knowledge of object concepts and SQL is a plus.Trainers
Benefits for Participants
• Create and modify scripts in Python.
• Identify Python modules.
• Create their own modules.
• Explain object-oriented programming with Python.
• Explain exceptions and use them in scripts.
• Write to files and use object serialization.
• Explain relational databases and save objects.
Course architecture
Introduction
• Presentation of Python and its versions, history.
• Installation of Python and a development environment (IDE).
Getting Started
• Using the Python interpreter.
• Using the IDE.
• Basic syntax of the language.
• Python help and documentation.
Variables, Classes, and Operators
• Different data types.
• Main classes.
• Operators.
Control Structures
• Conditional structures.
• Repetitive structures.
• Other structures.
Functions
• Utility and definitions.
• Arguments and variables.
• Function calls.
• Defining functions.
Modules and Packages
• Introduction.
• Importing.
• Overview of the standard library.
• Defining modules and packages.
Object-Oriented Programming
• Principles of object concepts.
• Defining a class, creating objects.
• Inheritance and polymorphism.
Exception Handling
• Error handling presentation.
• try, except, else, finally control structures.
• Exception propagation.
• Defining exceptions.
• Triggering exceptions.
Files and Serialization
• Opening and closing.
• Reading and writing.
• Object serialization (pickle and shelve modules).
Additional Topics
• sys module, interacting with the Python interpreter.
• os module, interacting with the operating system.
• re module, regular expressions.
Database Access
• Python DBAPI for manipulating DBMS.
• Modules for Sqlite, PostgreSQL.
• MySQLdb module for MySQL.
• Relational/object mapping and persistence.
• Saving and restoring objects in Python.
Python Best Practices
• Writing rules.
• Code documentation.
• Quality assurance tools (QA).
Going Further
• Creating graphical interfaces.
• Interfacing Python with other languages
Pedagogical details
Type of training
Private or personalized training
Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.
Request a quotePrivate or personalized training
Do you have several employees interested in the same training course? Whether in person at your offices or remotely in virtual mode, we offer private training courses tailored to your team's needs. Group rates are available. Contact us for more details or request a quote online.
Request a quote