🗒 Cheat Sheet← Lesson
BitWithBite
Pygame Mastery Worksheet

🐍 Python Refresher

Module 1 of 20 · Level ★☆☆ · Time: 40 min
SCORE___ / 20
NameClassDate
After this worksheet you can
Use variables, data types and operators correctlyWrite if/elif/else and match/case branchingUse while and for loops with break/continueWrite functions and simple classes with inheritance
📚 Quick Recap

Before Pygame enters the picture, this module locks in the core Python skills every future game leans on: variables and data types, control flow, loops, functions and scope, and object-oriented programming — classes, objects, inheritance and polymorphism.

🧠 Section A · Concept Check ● BEGINNER 4 × 1 = 4

1What does input() always return?
2Which loop is guaranteed to run a fixed number of times?
3What keyword sends a value back from a function?
4In a class method, what does self refer to?

🧮 Section B · Problem Solving ● INTERMEDIATE 2 + 3×3 = 11

5The comparison operator for "equal to" is (two characters).
6The loop keyword that skips straight to the next iteration is .
7Write a one-line if/else expression (conditional expression) that sets label = "Win" if score >= 100 else "Try Again".
8What is the difference between a while loop and a for i in range(n) loop?
9Name the class method Python calls automatically when you create a new object.

🚀 Section C · Challenge ● CHALLENGE 5

10A game loop is a while loop that runs "forever". Explain in your own words why a game needs a loop shaped this way instead of code that just runs once from top to bottom.
💭 Reflection — the most useful thing I learned:
A ___/4   B ___/11   C ___/5   Total ___/20 Teacher's Signature Parent's Signature
✂ answer key — fold or cut before handing out

1-B   2-B   3-A   4-B  |  5 ==   6 continue   7 = label = "Win" if score >= 100 else "Try Again"   8 = while repeats until a condition becomes false (unknown iteration count); for+range repeats an exact, known number of times   9 = __init__  |  10 = A game must keep checking input/updating/drawing every single frame indefinitely until the player quits, which is exactly what a repeating loop does — running once top-to-bottom would only show a single static frame

📄 Need offline practice?Download the print-ready PDF or open the one-page cheat sheet.
⬇ Worksheet PDF 🗒 Cheat Sheet