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