Bird

Loops

For Loops

For loops allow you to iterate over a sequence or range of values, executing a block of code for each iteration.

While Loops

Continue to loop until the while loop condition becomes false or the loop exits.

Continue and Break

Continue and break add additional control flow functionality to loops. If you want to immediately skip to the next loop iteraction, use continue.

If you want to immediately exit the loop, use break.

Still here?

Check out the playground!