#time.py # Demo time import time start_time = time.time() inp = input("Time is ticking... hit Enter") #for i in range(10000000): #x = i**10 + 12341234.345 * 1234 end_time = time.time() elapsed_time = end_time - start_time print("Amount of time:", elapsed_time) #slow down a loop using time.sleep() pow2 = 1 for i in range(40): print(pow2) time.sleep(.5) #pause 1/2 second pow2 *= 2