Skip to content

Latest commit

 

History

History
98 lines (57 loc) · 3.83 KB

File metadata and controls

98 lines (57 loc) · 3.83 KB
layout default
title Coding Club

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.

How to use this site

  1. Lessons - Read each unit in order. They introduce ideas in small steps with short activities.
  2. Practice Tasks - Extra problems grouped by units to apply what you learn from the lessons section.
  3. 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


Lessons

Read these in sequence within each unit before moving on.

Unit 1 - Basics

  • 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(), and input().
  • 1.3 [Operators]({{ site.baseurl }}/lessons/1-basics/3-operators/) - Maths, comparisons, and logical and / or / not.

Unit 2 - Control flow

  • 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.

Unit 3 - Data structures

  • 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().

Unit 4 - Functions

  • 4.1 [Defining functions]({{ site.baseurl }}/lessons/4-functions/1-defining-functions/) - def, parameters, arguments, and return.
  • 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.

Unit 5 - Pygame and your first game

  • 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.

Practice tasks

Unit 2

  • [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

  • [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

  • [Unit 4 tasks]({{ site.baseurl }}/tasks/4-functions/) - Functions: parameters, return, booleans, loops inside def, and a three-question addition quiz, each with a solution page.

Tutorials

Each link goes to a tutorial hub with steps. Use these alongside or right after the matching unit.

Unit 1

  • 1.1 [Build Tetris with Pygame]({{ site.baseurl }}/tutorials/1-1/) - Full Tetris-style project: board, pieces, rotation, and fixes.
  • WIP

Unit 2

  • WIP

Unit 3

  • WIP

Unit 4

  • WIP

Unit 5

  • WIP

  • [AI Disclaimer]({{ site.baseurl }}/ai-use/)