Objectives of the training
At the end of this course, participants will be able to develop their own Python programs and debug and maintain existing scripts.Prerequisite
aving initial experience with a programming language and being comfortable with algorithmsTrainers
Benefits for Participants
• Master the syntax of the Python language.
• Learn to develop your own programs from scratch.
• Acquire the necessary knowledge to debug and maintain scripts developed by other developers.
Course architecture
Introduction to the Python language
Presentation and history of the language
Installation and setup of a development environment for Python:
• Installation of a Python distribution
• Setup of an IDE
Presentation of best practices: naming and coding rules and conventions
Basic structure of the language
Structure of Python files
Simple data types: strings, numbers, …
Advanced types:
• Lists and their associated operations and methods
• Tuples and their associated operations and methods
• Dictionaries and their associated operations and methods
Conditional statements and loops: if/elif/else, while, for, break, continue, …
Functions:
• Defining a function
• Function calls and Python parameters
Structuring programs into modules
• Introduction to the notion of a module
• Importing and using modules
Object‑oriented programming
Reminders
• The object paradigm: class, object, behaviors, characteristics
• UML diagram formalism
Defining a class
• Definition and structure
• Constructors and destructors
• The self parameter
Implementing encapsulation in classes
• Writing and using public/private methods
Inheritance mechanisms
Generalization to all data types
Practical work:
• Creating classes to represent the application’s business objects
• Implementing these classes in the application
Advanced concepts in object‑oriented programming
Error handling
• Introduction to the exception mechanism
• Raising exceptions
• Handling exceptions
Advanced manipulation of strings following the object‑oriented approach
Use of the standard library
Command‑line handling
File reading/writing
The sys and os modules
Using regular expressions
Quickly developing new command‑line tools with options
Managing different operating systems with the same scripts
Database access with Python
Standardized connection to databases
• The DB‑API
Expression and execution of SQL queries
• Retrieving structured data
• Updating data
Use of the SQLite3 database embedded in Python
Persistence mechanisms through ORM
• Reminder on ORM
• ORM in Python
• Use of SQLAlchemy
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