Python for beginners: 10 lessons

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.

  1. Set up the editor
  2. Variables and print
  3. Types and input
  4. if, elif, else
  5. for and while
  6. Functions
  7. Lists and strings
  8. Text files
  9. Errors and debugging
  10. Higher or lower, a small terminal game

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.

Further reading

Was this page helpful?

Have a question about this guide or need advice? Ask us here

Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.