Python is a cross-platform programming language that allows the development of a wide variety of applications. You’ll master its syntax, its main mechanisms, and its Object paradigm. You’ll discover the features of the standard module library, implement graphical interfaces, access data from a database while using tools to test and evaluate the quality of the code produced.
Training at your location, our location or remotely
Ref. PYT
5d - 35h
Would you like to transpose this course—without changes—for your company?
A la carte training
Do you want a training course tailored to the needs of your company and its teams? Your training will be built to measure by our experts!
Python is a cross-platform programming language that allows the development of a wide variety of applications. You’ll master its syntax, its main mechanisms, and its Object paradigm. You’ll discover the features of the standard module library, implement graphical interfaces, access data from a database while using tools to test and evaluate the quality of the code produced.
Teaching objectives
At the end of the training, the participant will be able to:
Master the syntax of the Python language
Acquire the essential notions of object-oriented programming
Know and implement different Python modules
Designing graphic interfaces
Implementing tools for testing and evaluating the quality of a Python program
Intended audience
Developers, engineers, project managers close to the development process.
Prerequisites
Basic programming knowledge.
Course schedule
Syntax of Python language
Identifiers and references. Coding conventions and naming rules.
Blocks and comments.
Available data types.
Variables, formated display, local and global scope.
Working with numeric types, working with character strings.
Working with dynamic tables (list), static tables (tuple) and dictionaries.
Using files.
The if/elif/else conditional structure.
Logical operators and comparison operators.
while and for iterator loops. Break/continue iteration interrupts.
The range function.
Writing and documenting functions.
Lambda expressions.
Generators.
Structuring code into modules.
Hands-on work¤Installing and getting started with the Python interpreter.
Object-Oriented Approach
The principles of the Object paradigm.
Defining an object (state, behavior, identity).
The notion of a class, attributes, and methods.
Encapsulating data.
Communication between objects.
Inheritance, transmitting a class's characteristics.
Notion of polymorphism.
Association between classes.
Interfaces.
Overview of UML.
Diagrams of classes, sequences, activities, etc.
Notion of design patterns.
Hands-on work ¤UML modeling of a simple case study.
Object-Oriented Programming in Python
The particular features of the Python Object model.
The use of the exception mechanism for error management.
Hands-on work ¤Exercises in different object-oriented concepts by implementing the case study.
Use of StdLib
Passing arguments on the command line.
The use of the Python regular expression engine with the "re" module, special characters, cardinality.
Working with the file system.
Overview of some important modules of the standard library: “sys”, “os”, “os.path” modules.
Packaging and installing a Python library.
Access to the relational database, the operation of the API DB.
Hands-on work ¤Implementing Python modules: Regular expressions, accessing a database
QA tools
Static code analysis tools (pylint, pychecker).
Analyzing analysis reports (types of messages, warnings, errors).
Automatic documentation extraction.
The Python debugger (step-by-step execution and post-mortem analysis).
Test-driven development.
Python unit test modules (Unittest., etc.).
Automating tests, aggregating tests.
Code coverage tests, profiling.
Hands-on work ¤Using the tools pylint and pychecker to check Python code. Implementing unit tests.
Creating the TkInter HMI
The principles of programming graphical user interfaces
Overview of the TkInter library.
The main containers.
Overview of the widgets available (Button, Radiobutton, Entry, Label, Listbox, Canvas, Menu, Scrollbar, Text, etc.).
The window manager.
Placement of components, different layouts.
Event management, the "event" object.
Multi-window applications.
Hands-on work ¤Designing a graphical user interface with the Tkinter library.
Python/C interface
Overview of the Ctypes module.
Loading a C library.
Calling a function.
Rewriting a Python function in C with the Python/C API.
Creating C modules for Python.
The Python interpreter in C.
Using the code profiler.
Hands-on work¤Calling functions written in C from Python. Creating C modules for Python with Pyrex.
Conclusion
Critical analysis of Python.
Evolution of the language.
Webography and bibliography elements.
Customer reviews
4,5 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class
No session at the moment, we invite you to consult the schedule of distance classes.