Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep, time
- #importing sleep function from time module
- #If I got it correclty, I imported time function from time module.
- print('Loading...')
- sleep(.5)
- print('A python program wrote by Raindrop for #Picademy')
- sleep(.5)
- print('Week 1')
- sleep(.5)
- print('Now, were testing input key, press Enter key please.')
- input() #Expects keyboard input, Entern/Return by default
- print('Thank you') #Inputs to console
- sleep(.5)
- print('Now, lets try again. This time with reaction time. Press Enter for start.')
- input()
- sleep(2)
- print('NOOW!')
- #Defining start
- start = time() #It equals time()
- #Defining reaction_time, which equals time minus start
- reaction_time = time() - start
- input()
- print('It took you', reaction_time, 'seconds! Press Enter to continue.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement