Race Result Details |
| Racer | Karol Montoya Mendoza (karol_mm) |
| Race Number | 20 |
| Date | Mon, 23 Sep 2024 0:52:36 |
| Universe | code |
| Speed |
28 WPM
Try to beat?
|
| Accuracy | 97.6% |
| Rank | 2nd place (out of 12) |
| Opponents | fabioladiaz (4th place) jos3ar (1st place) kazaam37 (3rd place) ronnymorunoerquicia (5th place) |
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
— (other)
by www.pythonforbeginners.com
(see stats)
|
