DEV Community

Avinash Mathi
Avinash Mathi

Posted on

Range of Numbers: Allow the user to choose the range (e.g., 1 to 50, 1 to 100, or 1 to 1000) to adjust the difficulty.

print("Choose a range for the number:")
print(1.1,50)
print(2.1,100)
print(3.1,1000)
for i in range(1,50):
print(i)
for i in range(1,100):
print(i)
for i in range(1,1000):
print(i)

Top comments (0)