TPT
Total:
$0.00
Python for Kids | Lesson 3 — Build Your First Game | Student Coding Worksheet
Share

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

Report this resource to TPT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TPT's content guidelines.

Python for Kids | Lesson 3 — Build Your First Game | Student Coding Worksheet

Reapps Coding Education
6 Followers
$2.00
$2.50
SAVE
$0.50

Highlights

Digital downloads
Grades icon
Grades
5th - 10th
Pages
7
Teaching Duration
1 hour

Save even more with bundles

Save 30% with this bundle — and teach Python through a complete, game-based curriculumStudents don’t just learn to code… 👉 they build and play their own game from scratch.This Python for Kids Bundle includes a complete 5-lesson curriculum designed to take students from absolute beginner → real game
Price $19.99Original Price $30.00Save $10.01
10

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

Report this resource to TPT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TPT's content guidelines.

Reviews

This product has not yet been rated.
Rated 0 out of 5

Questions & Answers

Loading
Loading