Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
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):