June 2021
Beginner
432 pages
9h 9m
English
This program tests your reaction speed: press Enter as soon as you see the word DRAW. But careful, though. Press it before DRAW appears, and you lose. Are you the fastest keyboard in the west?
When you run fastdraw.py, the output will look like this:
Fast Draw, by Al Sweigart al@inventwithpython.com Time to test your reflexes and see if you are the fastest draw in the west! When you see "DRAW", you have 0.3 seconds to press Enter. But you lose if you press Enter before "DRAW" appears. Press Enter to begin... It is high noon... DRAW! You took 0.3485 seconds to draw. Too slow! Enter QUIT to stop, or press ...Read now
Unlock full access