Race Updates Discord About Merch
Home Profile History Competitions Texts Messages Friends Upgrade

typeracer

Pit Stop

Record your races with a typeracer account:

Create Your Account
  • Save your race history and scores.
  • Customize your profile and racecar.
  • It’s free, why not?
Racer Nameless (plot_da_pro)
Race Number 4
Date Wed, 5 Jul 2023 12:10:26 +0000
Universe code
Speed 48 WPM Try to beat?
Accuracy 95.3%
Rank 2nd place (out of 3)

Text typed:

import random n = random.randint(1, 99) guess = int(raw_input("Enter an integer from 1 to 99: ")) while n != "guess": print if guess < n: print "guess is low" guess = int(raw_input("Enter an integer from 1 to 99: ")) elif guess > n: print "guess is high" guess = int(raw_input("Enter an integer from 1 to 99: ")) else: print "you guessed it!" break print
Guessing Game (other) by www.pythonforbeginners.com (see stats)

Typing Review:

Race text:
import random n = random.randint(1, 99) guess = int(raw_input("Enter an integer from 1 to 99: ")) while n != "guess": print if guess < n: print "guess is low" guess = int(raw_input("Enter an integer from 1 to 99: ")) elif guess > n: print "guess is high" guess = int(raw_input("Enter an integer from 1 to 99: ")) else: print "you guessed it!" break print
Time:
0:00
Speed:
Accuracy:
Typing replay:
Analysis:
Mistakes:
  1. random.randint(1,
  2. int(raw_input("Enter
  3. 99:
  4. "))
  5. print
  6. n:
  7. "guess
  8. is
  9. low"
  10. from
  11. n:
  12. "guess
  13. high"
  14. 1
  15. print