0Pricing
Coding for Kids · Lesson

Counting by Steps

Skip numbers.

Counting by Steps 🪜

What if we want to skip numbers? range has a third number called the step! 🦘

Count by Twos 2️⃣

range(0, 10, 2) jumps by 2: 0, 2, 4, 6, 8!

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

All lessons in this course

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