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