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