Race Result Details |
| Racer | SaraĆ (sarai_vega012) |
| Race Number | 28 |
| Date | Sat, 28 Jun 2025 1:20:14 |
| Universe | code |
| Speed |
23 WPM
Try to beat?
|
| Accuracy | 94% |
| Rank | 5th place (out of 6) |
| Opponents | ariane_salazar (2nd place) maria_ortega10 (1st place) marite1 (4th place) nessa2 (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)
|
