Skip to Content
Learn
Loops
For your health

An alternative way to loop is the for loop. The syntax is as shown in the code editor. This example means β€œfor each number i in the range 0 - 9, print iβ€œ.

Instructions

1.

Make the loop print the numbers from 0 to 19 instead of 0 to 9.

Folder Icon

Take this course for free

Already have an account?