Loops
A loop is used to repeatedly execute a statement.
A while loop executes statements repeatedly while a condition is true.
A for loop iterates through each value of a sequence.
In this section, you'll explore while and for loops.
Last updated
A loop is used to repeatedly execute a statement.
A while loop executes statements repeatedly while a condition is true.
A for loop iterates through each value of a sequence.
In this section, you'll explore while and for loops.
Last updated