Python Tutorial

Python For Loops

For Loops

Loops let you repeat blocks of code efficiently.

for i in range(5):
    print(i)
Try it Yourself
Run this PYTHON example in your local environment or course sandbox.