THE IDEA
Understand the concept
A for loop is an easy way to repeat work over a sequence. range(stop) produces numbers starting at zero and stopping before stop, so range(3) contains 0, 1, and 2.
WORKED EXAMPLE

LESSON 04 ยท PYTHON
A for loop visits each item in a sequence or range.
THE IDEA
A for loop is an easy way to repeat work over a sequence. range(stop) produces numbers starting at zero and stopping before stop, so range(3) contains 0, 1, and 2.
WORKED EXAMPLE