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


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


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):