Python: learn the language through projects
Write scripts and structured programs in Python, from basic types to classes, files and databases.
- Duration
- 28 h · 4 days
- Level
- Beginner
- Format
- On site · Remote · Blended
- Max. group size
- 12 participants
Overview
This program teaches Python in a concrete way. Participants discover the basic types and control structures, write functions, handle files, structure their code into modules and classes, then access a SQLite database and build a small graphical interface. The last half day shows how to make the most of AI assistants for programming.
Who this program is for
- Future developers and analysts
- System administrators who want to automate
- Career changers into data or development
Prerequisites
- Notions of algorithms (variables, conditions, loops)
Learning objectives
- Identify common uses of Python
- Use lists, tuples, sets and dictionaries
- Write functions, comprehensions and exception handling
- Reading and writing files
- Structure code with modules, packages and classes
- Manage dependencies and virtual environments
- Access a database and create a simple interface
Detailed curriculum
8 modules · 28 h · 4 days
Getting started with Python
- Where and why Python is used
- Setting up the environment
- Variables and primitive types
- Strings
- Input and output
Data structures
- Lists, tuples, sets
- Dictionaries
- Copies and references
- Iteration and sorting
- Choosing the right structure
Manage contacts with data structures.
Control flow and functions
- Conditions and loops
- List comprehensions
- Functions, arguments and return values
- Variable scope
- Exceptions
Files and data
- Reading and writing text files
- CSV and JSON
- Paths and folders
- Logging
- Processing a dataset
Write a script that cleans and summarizes files.
Modules, packages and environments
- Importing and creating modules
- Packages
- pip and virtual environments
- Useful standard library
- Project structure
Object-oriented programming in Python
- Classes, attributes and methods
- Inheritance
- Special methods
- Encapsulation
- When to use classes
Model a small business domain with classes.
Database and graphical interface
- SQLite from Python
- Parameterized queries
- Graphical interface with Tkinter
- Linking interface and data
- Packaging a small tool
Create a small application with an interface and a database.
Debugging and AI assistants
- Debugging methodically
- Reading error messages
- AI assistants for programming: uses and limits
- Simple tests
- Ways to continue
Tools and technologies
Teaching methods
- Alternating short lectures and hands-on work
- Live demonstrations by the trainer
- Capstone project built throughout the modules
- Group corrections and discussion of best practices
Assessment
- Hands-on exercises corrected in each module
- Mini-project completed at the end of the course
- Knowledge-check quiz
Required equipment
- A computer with an internet connection
- Python 3 and a code editor (Visual Studio Code)
Resources provided
- Course materials and repository of corrected exercises
Career outcomes
- Several useful scripts automating tasks
- A small structured project with a database
- A foundation for data science or the web
Related video courses
My video courses that go with this program, to get ready for the training or to review afterwards. Free with an account.

