while True: num = int(input("Enter a number: ")) print(list(range(1,num+1)))