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
- Why Loops Are Awesome
- Counting with for
- Repeating with while
- Drawing Patterns