Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep, time
- loop = input("How many times do you want to try your reaction skills? ")
- count = 0
- for i in range(int(loop)):
- print("Attempt number " + str(count + 1))
- sleep(5)
- start = time()
- print("Quick, press enter")
- input()
- print("That was fast")
- stop = time()
- reaction_time = (stop - start)
- print("You took "+ str(reaction_time) + " seconds")
- count = count + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement