Python for beginners: 10 lessons
A free Python 3 path: variables, conditions, loops, functions, lists, files, errors, then a small terminal game.
Getting started
Home Assistant
Buying
A free Python 3 path: variables, conditions, loops, functions, lists, files, errors, then a small terminal game.

Direct answer — Ten free lessons. Install Python, then follow them in order. Each one has examples to type and exercises with hidden solutions.
Next: intermediate Python, then advanced Python.
Projects that reuse these lessons: Hangman, Battleship, Connect Four, todo notebook.
All of the courses sit on the learn to code page.
Was this page helpful?
Thank you!
What should we improve?
Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.
Cookies and analytics
We use Google Analytics 4 to understand how the site is used (page views, navigation). It is only switched on if you accept. Declining does not stop you using the site. More: cookie settings and privacy policy (in French).