Coding for Kids · Lesson

The range Helper

Count automatically.

Lesson 1 of 413 steps

The range Helper is a free Coding for Kids lesson on CoddyKit. This is lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, and your progress syncs across the web and the CoddyKit app. The Coding for Kids course includes 4 lessons in total.

The range Helper 🔢

range is a counting helper! It makes a line of numbers for us so we do not have to type them all. 🪄

range to a Number 📏

range(5) counts 0, 1, 2, 3, 4. It stops BEFORE 5!

for i in range(5):
    print(i)

Starts at Zero 0️⃣

By itself, range always starts at 0.

for i in range(3):
    print(i)

Stops Before End 🛑

range(4) gives 0, 1, 2, 3, not 4! The end is not included.

for i in range(4):
    print(i)

Count Things 🎈

Use range to do something a set number of times!

for i in range(3):
    print("Hello!")

Make a List 📝

Turn a range into a list to see all the numbers.

print(list(range(5)))

Range in a Loop 🔁

Range is the engine that powers counting loops!

for i in range(4):
    print("Step", i)

Use the Number 🧮

The loop number can be used in math.

for i in range(4):
    print(i * 10)

Three Cheers 📣

Repeat a cheer with range.

for i in range(3):
    print("Hip hip hooray!")

Count Stars ⭐

Print a growing line of stars!

for i in range(4):
    print("*" * i)

Why range? 💡

range saves you from typing long number lists. Tell it how far to count and it does the work! 🚀

Quick Check ✅

Counting brain snack! 🍪

Range Ranger! 🌟

You met range, the counting helper. It starts at 0 and stops before the end number. Counting made easy! 🎉

Free to start

Learn Python with an AI tutor — free

Write and run real code in your browser, get instant help from a 24/7 AI tutor, and pick up where you left off on the web or in the app.

Courses
35
Lessons
140

Frequently Asked Questions

Is the “The range Helper” lesson free?

Yes — the full text of “The range Helper” is free to read here on the web. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO. The Coding for Kids course includes 4 lessons in total.

What will I learn in “The range Helper”?

Count automatically. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners, so you can start here or from the beginning and move at your own pace. This is lesson 1 of 4.

How long does the “The range Helper” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. The range Helper
  2. Counting Up
  3. Counting by Steps
  4. Counting Down
← Back to Coding for Kids