| layout | default |
|---|---|
| title | Coding Club |
Learn Python from your first lines of code to a small Pygame runner game. Everything here is free to work through at your own pace.
- Lessons - Read each unit in order. They introduce ideas in small steps with short activities.
- Practice Tasks - Extra problems grouped by units to apply what you learn from the lessons section.
- Tutorials - Optional guided projects spanning multiple steps. Open these when you want to build something bigger.
[Resources]({{ site.baseurl }}/resources/) - Python, Pygame, install tips, and more
Read these in sequence within each unit before moving on.
- 1.1 [Types of data]({{ site.baseurl }}/lessons/1-basics/1-types-of-data/) - Integers, floats, strings, booleans, and checking types with
type(). - 1.2 [Variables]({{ site.baseurl }}/lessons/1-basics/2-variables/) - Naming values, assignment,
print(), andinput(). - 1.3 [Operators]({{ site.baseurl }}/lessons/1-basics/3-operators/) - Maths, comparisons, and logical
and/or/not.
- 2.1 [Conditionals]({{ site.baseurl }}/lessons/2-control-flow/1-conditionals/) -
if,elif,else, and why indentation matters. - 2.2 [Loops]({{ site.baseurl }}/lessons/2-control-flow/2-loops/) -
while,for,break,random, and the higher-lower guessing game.
- 3.1 [Lists and arrays]({{ site.baseurl }}/lessons/3-data-structures/1-lists-and-arrays/) - Ordered collections, indexes,
append, and looping. - 3.2 [Dictionaries and objects]({{ site.baseurl }}/lessons/3-data-structures/2-dictionaries-and-objects/) - Key-value pairs, lookup, and
.get().
- 4.1 [Defining functions]({{ site.baseurl }}/lessons/4-functions/1-defining-functions/) -
def, parameters, arguments, andreturn. - 4.2 [Scope and return values]({{ site.baseurl }}/lessons/4-functions/2-scope-and-return-values/) - Where variables exist, passing data in and out, debugging tips.
- 5.1 [Pygame setup and the game loop]({{ site.baseurl }}/lessons/5-pygame-basics/1-debugging/) - Install Pygame, open a window, handle quit, redraw each frame.
- 5.2 [Coordinates and drawing]({{ site.baseurl }}/lessons/5-pygame-basics/2-projects/) - Screen coordinates,
Rect, and drawing shapes. - 5.3 [Keyboard input and moving a rect]({{ site.baseurl }}/lessons/5-pygame-basics/3-keyboard-and-moving/) - Arrow keys, moving the player, staying on screen.
- 5.4 [Collision and game logic]({{ site.baseurl }}/lessons/5-pygame-basics/4-collision/) -
colliderect, obstacles, and scrolling. - 5.5 [Building a runner game]({{ site.baseurl }}/lessons/5-pygame-basics/5-runner-game/) - Jump, gravity, scoring, Chrome Dino-style loop.
- [Unit 2 tasks]({{ site.baseurl }}/tasks/2-control-flow/) - Conditionals, loops, and
input: menus, games, maths stories, and stretch problems, each with a solution page.
- [Unit 3 tasks]({{ site.baseurl }}/tasks/3-data-structures/) - Lists and dictionaries: playlists, tallies, menus, slices, and a mixed list-plus-dict voting task, each with a solution page.
- [Unit 4 tasks]({{ site.baseurl }}/tasks/4-functions/) - Functions: parameters,
return, booleans, loops insidedef, and a three-question addition quiz, each with a solution page.
Each link goes to a tutorial hub with steps. Use these alongside or right after the matching unit.
- 1.1 [Build Tetris with Pygame]({{ site.baseurl }}/tutorials/1-1/) - Full Tetris-style project: board, pieces, rotation, and fixes.
- WIP
- WIP
- WIP
- WIP
- WIP
- [AI Disclaimer]({{ site.baseurl }}/ai-use/)