Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
The for loop
4. for loop with range() – Exercise 1
The while loop
Nested loops
break and continue
Summary

Instruction

All right! Now, it's your turn to write a for loop from scratch.

Exercise

Write a program that will print all numbers from 1 to 20. Each time, simply print the number, without any additional text.

Stuck? Here's a hint!

Remember the syntax:

for i in range(a, b):
  ...