Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. from time import sleep, time
  2. #importing sleep function from time module
  3. #If I got it correclty, I imported time function from time module.
  4.  
  5. print('Loading...')
  6. sleep(.5)
  7. print('A python program wrote by Raindrop for #Picademy')
  8. sleep(.5)
  9. print('Week 1')
  10. sleep(.5)
  11. print('Now, were testing input key, press Enter key please.')
  12. input() #Expects keyboard input, Entern/Return by default
  13. print('Thank you') #Inputs to console
  14. sleep(.5)
  15. print('Now, lets try again. This time with reaction time. Press Enter for start.')
  16. input()
  17. sleep(2)
  18. print('NOOW!')
  19. #Defining start
  20. start = time() #It equals time()
  21. #Defining reaction_time, which equals time minus start
  22. reaction_time = time() - start
  23. input()
  24. print('It took you', reaction_time, 'seconds! Press Enter to continue.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement