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