Loops & Iterators

Loop the Loop with Loop

Great work! We'll give you a bit of a break from the numbers game.

m = 0
loop do
  m += 1
  print m
  break if m == 10

In the example above, we print out 12345678910 since we loop 10 times.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.