View Pit Stop page for race #28 by sumit_ghag — Ghost race
View profile for Sumit (sumit_ghag)
Official speed | 50.13 wpm (92.88 seconds elapsed during race) |
---|---|
Race Start | August 7, 2023 2:15:41pm UTC |
Race Finish | August 7, 2023 2:17:14pm UTC |
Outcome | Win (1 of 3) |
Accuracy | 97.0% |
Points | 53.47 |
Text | #10018 (Length: 388 characters) 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 |