Description
This is the worksheet where the game begins. Students stop writing isolated scripts and start building something real — a Guess the Number game, function by function, from scratch.
This is the student-facing companion to Python for Kids Lesson 3. Students create a brand new PyCharm project, define their first functions using def, collect user input with input(), and apply PEP 8 code style — all while laying the foundations of a fully playable game they will complete in Lessons 4 and 5.
★ HOW IT WORKS
→ Part 1 (Beginner Badge) — 4 guided missions
Students set up the GuessTheNumber project, learn what a function is and how to define one, write a user_name() function that greets the player by name, and create an input_range() function that collects a min and max number. By mission 4, two interactive functions are running in sequence.
→ Part 2 (Pro Badge) — PEP 8 Clean Code Research
Students search online for the PEP 8 Python style guide, answer 5 research questions, then apply every rule to their own code. This mission teaches self-directed learning and professional coding habits simultaneously.
→ Part 3 (Genius Badge) — Find the Bug + Validate Input
Two real engineering challenges: students find a logical bug in their input_range formula, explain why it breaks the game, fix it — then think through input validation and describe a solution in plain English. The if/else fix comes in Lesson 4, making this a perfect setup.
★ WHAT'S INCLUDED
• 7-page student coding mission sheet — self-guided, no teacher required
• Built-in cheat sheet — def, input(), int(input()), return, PEP 8 at a glance
• 4 guided missions building the GuessTheNumber game step by step
• PEP 8 research challenge — students find and apply the official style guide
• Genius challenges: bug hunt, formula fix, input validation design
• Wrap-up reflection questions + visual progress tracker
• Badge system: Beginner / Pro / Genius
★ CONCEPTS PRACTICED
• input() — collecting data from the user
• int(input()) — converting string input to a number
• def — defining a named, reusable function
• Indentation — 4 spaces, Python's non-negotiable structure rule
• Function calls — defining vs running a function
• Execution order — functions run only when called
• PEP 8 — snake_case, 4-space indent, blank lines, line length, docstrings
• Docstrings — the professional way to describe a function
• Logical debugging — spotting and fixing a formula error
★ WHO THIS IS FOR
• CS teachers looking for a project-based coding activity
• Homeschool parents introducing functions and game design
• After-school coding club instructors
• Students who completed Lessons 1 & 2 and are ready to build something real
★ WHAT MAKES THIS DIFFERENT
✔ Students build a real game project — not another isolated exercise
✔ PEP 8 research mission teaches self-directed learning
✔ Bug hunt challenge develops genuine problem-solving skills
✔ Every mission connects directly to the next lesson — the game keeps growing
✔ Works with any Python IDE: PyCharm, Thonny, VS Code, or repl.it
✔ Pairs with the Teacher Lesson Plan (sold separately)
✔ Part of a 5-lesson series — bundle available for maximum savings
★ TECHNICAL DETAILS
• Language: Python 3
• Prerequisite: Python for Kids Lessons 1 & 2
• Compatible IDEs: PyCharm, Thonny, VS Code, repl.it
• Self-guided — students can work independently
★ LICENSING
This resource is licensed for single-classroom use. For school or district licensing, please visit our store.
7-page student coding mission sheet — self-guided, no teacher required
Built-in cheat sheet — def, input(), int(input()), return, PEP 8 at a glance
4 guided missions building the Guess the Number game step by step
PEP 8 research challenge — students find the official style guide and apply every rule
Genius challenge A: find and fix a logical bug in the game formula
Genius challenge B: design an input validation system in plain English
3-level differentiation: Beginner / Pro / Genius — every student works at their pace
Badge system built in — keeps students motivated and on track
Covers: input(), int(input()), def, indentation, function calls, PEP 8, docstrings
Compatible with PyCharm, Thonny, VS Code, and repl.it
Python for Kids | Lesson 3 — Build Your First Game | Student Coding Worksheet
Highlights
Save even more with bundles
Description
This is the worksheet where the game begins. Students stop writing isolated scripts and start building something real — a Guess the Number game, function by function, from scratch.
This is the student-facing companion to Python for Kids Lesson 3. Students create a brand new PyCharm project, define their first functions using def, collect user input with input(), and apply PEP 8 code style — all while laying the foundations of a fully playable game they will complete in Lessons 4 and 5.
★ HOW IT WORKS
→ Part 1 (Beginner Badge) — 4 guided missions
Students set up the GuessTheNumber project, learn what a function is and how to define one, write a user_name() function that greets the player by name, and create an input_range() function that collects a min and max number. By mission 4, two interactive functions are running in sequence.
→ Part 2 (Pro Badge) — PEP 8 Clean Code Research
Students search online for the PEP 8 Python style guide, answer 5 research questions, then apply every rule to their own code. This mission teaches self-directed learning and professional coding habits simultaneously.
→ Part 3 (Genius Badge) — Find the Bug + Validate Input
Two real engineering challenges: students find a logical bug in their input_range formula, explain why it breaks the game, fix it — then think through input validation and describe a solution in plain English. The if/else fix comes in Lesson 4, making this a perfect setup.
★ WHAT'S INCLUDED
• 7-page student coding mission sheet — self-guided, no teacher required
• Built-in cheat sheet — def, input(), int(input()), return, PEP 8 at a glance
• 4 guided missions building the GuessTheNumber game step by step
• PEP 8 research challenge — students find and apply the official style guide
• Genius challenges: bug hunt, formula fix, input validation design
• Wrap-up reflection questions + visual progress tracker
• Badge system: Beginner / Pro / Genius
★ CONCEPTS PRACTICED
• input() — collecting data from the user
• int(input()) — converting string input to a number
• def — defining a named, reusable function
• Indentation — 4 spaces, Python's non-negotiable structure rule
• Function calls — defining vs running a function
• Execution order — functions run only when called
• PEP 8 — snake_case, 4-space indent, blank lines, line length, docstrings
• Docstrings — the professional way to describe a function
• Logical debugging — spotting and fixing a formula error
★ WHO THIS IS FOR
• CS teachers looking for a project-based coding activity
• Homeschool parents introducing functions and game design
• After-school coding club instructors
• Students who completed Lessons 1 & 2 and are ready to build something real
★ WHAT MAKES THIS DIFFERENT
✔ Students build a real game project — not another isolated exercise
✔ PEP 8 research mission teaches self-directed learning
✔ Bug hunt challenge develops genuine problem-solving skills
✔ Every mission connects directly to the next lesson — the game keeps growing
✔ Works with any Python IDE: PyCharm, Thonny, VS Code, or repl.it
✔ Pairs with the Teacher Lesson Plan (sold separately)
✔ Part of a 5-lesson series — bundle available for maximum savings
★ TECHNICAL DETAILS
• Language: Python 3
• Prerequisite: Python for Kids Lessons 1 & 2
• Compatible IDEs: PyCharm, Thonny, VS Code, repl.it
• Self-guided — students can work independently
★ LICENSING
This resource is licensed for single-classroom use. For school or district licensing, please visit our store.
7-page student coding mission sheet — self-guided, no teacher required
Built-in cheat sheet — def, input(), int(input()), return, PEP 8 at a glance
4 guided missions building the Guess the Number game step by step
PEP 8 research challenge — students find the official style guide and apply every rule
Genius challenge A: find and fix a logical bug in the game formula
Genius challenge B: design an input validation system in plain English
3-level differentiation: Beginner / Pro / Genius — every student works at their pace
Badge system built in — keeps students motivated and on track
Covers: input(), int(input()), def, indentation, function calls, PEP 8, docstrings
Compatible with PyCharm, Thonny, VS Code, and repl.it


