Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep, time
- sleep(2)
- count = 0
- score = 0
- start = time()
- for i in range(5):
- print('Quick, press the enter key')
- input()
- reaction_time = time() - start
- score = reaction_time + 1
- count = count + 1
- print('You took ', score , 'seconds')
- print('Average reaction time is ', score / 5 , 'seconds')
Advertisement
Add Comment
Please, Sign In to add comment