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