import time number = int(input('Enter a number: ')) count = 1 while count <= number: time.sleep(0.001) print( count ) time.sleep(0.001) count = count + 1 count = number - 1 while count >= 1: time.sleep(0.001) print( count ) time.sleep(0.001) count = count - 1