Learn
Sometimes you do know how many times you’ll be looping, however, and when that’s the case, you’ll want to use a for
loop.
Instructions
Take a look at the example for
loop in the editor. Can you guess what it does? Click Run to see it in action.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.