Race Result Details |
| Racer | Alex Beltran T. (beltran_tarqui) |
| Race Number | 314 |
| Date | Mon, 30 Jun 2025 1:23:03 |
| Universe | code |
| Speed |
41 WPM
Try to beat?
|
| Accuracy | 94.6% |
| Rank | 2nd place (out of 8) |
| Opponents | erick_vargas (5th place) jas_el1 (1st place) jhonny_ct (4th place) liz_mariela (6th place) nessa2 (8th place) samiraarancibia123426 (7th place) sharick_chungara (3rd 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)
|
