Lesson 31
For Loops
Repeat code easily!
loop
Don't Repeat Yourself!
Loops let you run code multiple times!
Without loop:
print("Hi")
print("Hi")
print("Hi")
print("Hi")
print("Hi") With loop:
for i in range(5):
print("Hi") Same result, much less code!