Skip to content

Tutorials

Learn Python one lesson at a time. Each lesson takes about an hour, and its extensions take about 30 minutes more.

The lessons start with programs that write words and ask questions, and build up to games and apps. If you have made things in Scratch, you are ready to start.

Module What you will make
Python Basics A name badge, a silly story, a quiz, a fortune teller, a guessing game, and rock, paper, scissors
Python Toolkit A times-table tester, a unit converter, a secret-code machine, monster cards, a high-score table and a text adventure

More modules, with games and apps made with Pygame Zero, are coming soon.

How to follow a lesson

  1. Open pygwide in one tab, and the lesson in another.
  2. On pygwide's home page, choose Tutorials, then the module, then the lesson. This opens the lesson's starter project.
  3. Follow the steps, typing the code yourself. Typing it is how you learn it. Every piece of code has a copy button, but save it for long lists that teach you nothing, or for catching up if you lose your work.
  4. As soon as you change anything, pygwide makes your own copy of the project in My Projects.
  5. If you finish early, try the extensions.
  6. At the end, export your project. Club computers can forget your work, but your exported zip file keeps it safe.

Each lesson has its own starter project, so you can start any lesson, even if you missed the one before or lost your zip.

For club leaders

The lessons are written for children of about ten to work through on their own, with an adult nearby to help. You can use the same pages as your guide to each session:

  • What you will learn says what the lesson teaches.
  • What you need from before says which earlier lessons it builds on, so you can do a quick recap first.
  • Check your code shows the finished program, so a child can compare their own with it.
  • Extensions keep children who finish early busy for about another 30 minutes. A later lesson never needs anything from an extension.
  • Every lesson ends with exporting the project. Make it a habit.