Вызовите диапазон Python () с помощью диапазона (Start, Stop)

# welcome to softhunt.net
# Python program to
# print natural number
# using range

# printing a natural
# number upto 20
print('printing a natural upto 20 :')
for i in range(1, 21):
	print(i, end=" ")
print()

# printing a natural
# number from 5 to 20
print('printing a natural from 10 to 20 :')
for i in range(10, 21):
	print(i, end=" ")
print()
Outrageous Ostrich