how to print numbers 1-9 python code example Example: how to print numbers from 1 to 20 in python for i in range(1, 21): print(i)