Description
Lesson 8.2 introduces students to counting loops and shows how programs repeat actions a fixed number of times.
Building directly on Lesson 8.1, this lesson moves students from understanding why loops matter to seeing how loops actually work in Python.
Students learn how for loops repeat code using a counter, how range() controls repetition, and how to trace loop execution step by step. The lesson emphasizes predicting behavior and reasoning about program flow before students write their own code, helping reduce confusion and common beginner errors.
This lesson is designed as students’ first true loop-coding experience, with structured practice and guided online coding using JDoodle.
What Students Learn
✔ What a counting loop is
✔ How for loops repeat code
✔ How range() controls how many times a loop runs
✔ How to trace loop execution
✔ Why indentation matters in loops
What’s Included
📄 Student worksheet with clear mini lesson
🧠 Guided loop tracing activities
💻 Online coding practice using JDoodle
✍️ Independent practice and reflection
👩🏫 Teacher guide with pacing and misconceptions
✅ Complete answer key
Where This Lesson Fits
📘 Course: Intro to Computer Science
📗 Unit 8: Loops and Repetition
📍 Lesson 8.2: Counting Loops
This lesson should be taught after Lesson 8.1 — Why Loops Matter and before Lesson 8.3 — Condition-Based Loops.
Grade Level
Grades 7–10
Middle School Computer Science
High School Intro to Programming
Format
Printable & digital-friendly
DOCX / PDF compatible
Highlights
Save even more with bundles
Description
Lesson 8.2 introduces students to counting loops and shows how programs repeat actions a fixed number of times.
Building directly on Lesson 8.1, this lesson moves students from understanding why loops matter to seeing how loops actually work in Python.
Students learn how for loops repeat code using a counter, how range() controls repetition, and how to trace loop execution step by step. The lesson emphasizes predicting behavior and reasoning about program flow before students write their own code, helping reduce confusion and common beginner errors.
This lesson is designed as students’ first true loop-coding experience, with structured practice and guided online coding using JDoodle.
What Students Learn
✔ What a counting loop is
✔ How for loops repeat code
✔ How range() controls how many times a loop runs
✔ How to trace loop execution
✔ Why indentation matters in loops
What’s Included
📄 Student worksheet with clear mini lesson
🧠 Guided loop tracing activities
💻 Online coding practice using JDoodle
✍️ Independent practice and reflection
👩🏫 Teacher guide with pacing and misconceptions
✅ Complete answer key
Where This Lesson Fits
📘 Course: Intro to Computer Science
📗 Unit 8: Loops and Repetition
📍 Lesson 8.2: Counting Loops
This lesson should be taught after Lesson 8.1 — Why Loops Matter and before Lesson 8.3 — Condition-Based Loops.
Grade Level
Grades 7–10
Middle School Computer Science
High School Intro to Programming
Format
Printable & digital-friendly
DOCX / PDF compatible







