๐ Python Tutorial
Six small projects, each โ1 hour. By the end youโll have written your own Python program, art, animations, and a real Snake game.
The course is adapted from the Raspberry Pi Foundationโs โIntroduction to Pythonโ pathway (used under CC BY-SA 4.0), with their inline-editor concept preserved here in your browser.
6-project course โ all 6 projects built! ๐
| ย | Project | Type | What you build |
|---|---|---|---|
| ๐ | 1 โ Hello World | Explore | Interactive program: greet by name, roll a dice, mix emojis |
| ๐ | 2 โ Target Practice | Explore | An archery game (with if / elif / else) |
| ๐ | 3 โ Rocket Launch | Explore | An animated rocket (with for loops) |
| ๐ | 4 โ Make a Face | Design | Your own face, monster, or alien |
| ๐ | 5 โ Snake! | Design | The classic Snake game |
| ๐ | 6 โ Invent Your Own | Invent | Something all yours |
Each project ends with a working program you can run, change, and show off.
๐ก Three big tips
- โ๏ธ Type the code yourself. Donโt copy-paste. Typing helps your brain remember.
- ๐ Errors are okay. Red messages arenโt scary โ theyโre clues.
- ๐ฌ Try stuff. Change a number, change a word, see what happens. You canโt break anything.
๐จโ๐ฉโ๐ง For parents โ the Solution button is PIN-locked
Every step has a ๐ก Solution button that fills in the answer. To stop kids from tapping it the moment they get stuck, it asks for a parent PIN the first time itโs used per browser tab.
- Default PIN:
1234 - Change the PIN: visit any page once with
?set-pin=NNNNin the URL (e.g.?set-pin=9876). The new PIN is saved in this browser only. 4โ8 digits. - Once unlocked, Solution works freely for the rest of that browser tab. Closing the tab re-locks it.
(Itโs a friction barrier, not real security โ anyone determined could read the PIN in the page source. But it does the job of โask your parent first.โ)