Race Result Details |
| Racer | Jhonny Condori (jhonny_ct) |
| Race Number | 34 |
| Date | Mon, 30 Jun 2025 1:23:26 |
| Universe | code |
| Speed |
33 WPM
Try to beat?
|
| Accuracy | 96.2% |
| Rank | 4th place (out of 8) |
| Opponents | beltran_tarqui (2nd place) erick_vargas (5th place) jas_el1 (1st 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)
|
