0Pricing
Coding for Kids · Lesson

Counting with for

Loop over a range of numbers.

Counting Loops 🔢

Hi, number ninja! 🥷 Today we learn the for loop with range(). It is the best way to count and repeat! 🎉

The for Loop Shape 📐

A for loop looks like this: for i in range(5): then indented code below. It runs 5 times!

for i in range(5):
    print("Hi! 👋")

All lessons in this course

  1. Why Loops Are Awesome
  2. Counting with for
  3. Repeating with while
  4. Drawing Patterns
← Back to Coding for Kids