Coding for Kids · Lesson

Counting Down

Loop backwards.

Lesson 4 of 413 steps

Counting Down is a free Coding for Kids lesson on CoddyKit. This is lesson 4 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.

Counting Down 📉

Time for a countdown! 5, 4, 3, 2, 1... blast off! 🚀 We use a NEGATIVE step.

Negative Step ⬇️

A step of -1 makes range count backwards!

for i in range(5, 0, -1):
    print(i)

Blast Off! 🚀

Count down then launch!

for i in range(3, 0, -1):
    print(i)
print("Blast off!")

From Ten 🔟

Count down from 10 to 1.

for i in range(10, 0, -1):
    print(i)

Why Negative? 🤔

The -1 step means go DOWN by 1 each time. The stop is one below the last number you want.

for i in range(4, 0, -1):
    print(i)

Down by Twos ➖

Use -2 to skip down by twos!

for i in range(10, 0, -2):
    print(i)

Countdown Message 📣

Add a fun word each step.

for i in range(3, 0, -1):
    print("T minus", i)

Rocket Stars 🌟

Make a shrinking star pattern!

for i in range(4, 0, -1):
    print("*" * i)

Down to Zero 0️⃣

Include 0 by using -1 as the stop.

for i in range(3, -1, -1):
    print(i)

Reverse a Count 🔄

Counting down is just counting up, flipped!

for i in range(5, 2, -1):
    print(i)

Countdown Power 💡

A negative step makes range go backwards. Perfect for rocket launches and timers! 🚀

Quick Check ✅

Countdown brain snack! 🍪

Countdown Commander! 🌟

You can count backwards with a negative step like range(5, 0, -1). 3... 2... 1... blast off! 🚀🎉

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 “Counting Down” lesson free?

Yes — the full text of “Counting Down” 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 “Counting Down”?

Loop backwards. 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 4 of 4.

How long does the “Counting Down” 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