Learn programming with Python

Programming is not magic, it's a handful of ideas you combine. We start from the terminal and end with a real little program split into modules, with its own third-party libraries. Every concept comes with an exercise, and every exercise has several solutions, so you learn to judge which one is best.

Duration: 3 days · Level: beginner

For: people with no programming experience who want to learn to program.

Prerequisites: none, apart from knowing how to use a computer.

Learn programming with Python

Day 1 — Discovering Python

  • A refresher on the terminal
  • Installing Python: good practices
  • Using the interpreter
  • A first "Hello World" program
  • Variables: declaration and assignment
  • Basic types: int, float, str, bool
  • Arithmetic operators
  • Conditions and control flow
  • Understanding errors and the stack trace
  • Lists and tuples
  • Looping with while and for
  • Dictionaries and sets

Day 2 — Structuring a program

  • Functions
  • The import system
  • Writing your own modules
  • Reading and writing a file
  • Accumulating and counting
  • Filtering, with and without list comprehensions
  • Sorting your data
  • Exceptions
  • try/except/finally
  • Using a debugger

Day 3 — Going further

  • Pip and virtualenv
  • Installing third-party libraries
  • Better code quality with ruff
  • Simpler projects with uv
  • An introduction to classes
  • Specialising through inheritance
  • Structuring data through composition

Elevate Your Python Proficiency!