A for loop repeats lines for you. range(1, 4) counts 1, 2, 3: it stops just before the second number.
for n in range(1, 4):
print("Step", n)
print("Done!")Step 1 Step 2 Step 3 Done!
Lines indented under the loop repeat. The line back at the left edge runs once, after the loop. Finish this one and your bot earns its first badge.
for loop with range(1, 6).Snack and the number: Snack 1 up to Snack 5.Crunch complete! once, as the last line.for n in range(1, 6): then, indented, print("Snack", n). Then, back at the left edge, print("Crunch complete!").
for n in range(1, 6):
print("Snack", n)
print("Crunch complete!")Press "Talk it out" at the top. Our Discord opens soon; until then email us and paste your code.