Coding for Kids · Lesson

Counting Up

Loop from low to high.

Lesson 2 of 413 steps

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

Let us count up from a low number to a high one using range with a start! 🚀

Start and Stop 🎯

range(2, 6) counts 2, 3, 4, 5. It starts at 2 and stops before 6.

for i in range(2, 6):
    print(i)

Count 1 to 5 🖐️

Count from 1 up to 5 (use 6 as the stop!).

for i in range(1, 6):
    print(i)

Count 10 to 13 🔢

Start anywhere you like!

for i in range(10, 14):
    print(i)

Why Plus One? ➕

To include 5, the stop must be 6, because range stops BEFORE the end.

for i in range(1, 6):
    print("Count:", i)

Countdown to Party 🎉

Count up the days!

for day in range(1, 4):
    print("Day", day)

Add Them Up ➕

Count up and keep a total!

total = 0
for i in range(1, 5):
    total = total + i
print(total)

Times Table ✖️

Print the 2 times table by counting up!

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

Numbered List 📋

Use the count to number items.

for i in range(1, 4):
    print("Item number", i)

Count from Zero 0️⃣

You can still start at 0 if you want.

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

Counting Up Power 💡

With range(start, stop) you count from any low number up to any high number. Super handy! 🎯

Quick Check ✅

Brain snack! 🍪

Count-Up Captain! 🌟

You learned range(start, stop) counts up from start and stops before stop. Add 1 to the stop to include it! 🎉

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 Up” lesson free?

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

Loop from low to high. 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 2 of 4.

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