i = 1
n = input("1 to what number? ")
#if your number is greater than 1, the code will print the number, add 1, print that, add1 again, and and follow that proccess till you hit that number. 
if i < int(n):
  while i < int(n):
    print(i)
    i = i + 1
  print(i)
#In the scenario that the number given is negative or smaller than 1, this code prints whats above, just backward, subtracting 1 at a timeinstead of adding 1. 
while i > int(n):
  print(i)
  i = i - 1
#If there are greater than or equal to 100 numbers, then it prints out a message saying "thats a lot of numbers"
if i >= 100:
  print("thats a lot of numbers")
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17