Race Result Details |
| Racer | Jhamel Pinto (jhamelpinto) |
| Race Number | 3 |
| Date | Wed, 10 Sep 2025 22:11:24 |
| Universe | code |
| Speed |
34 WPM
Try to beat?
|
| Accuracy | 92.6% |
| Rank | 2nd place (out of 9) |
| Opponents | brayancoaquira (7th place) fanor (1st place) freddytarqui (4th place) iverjoel (5th place) leonardo_espada (6th 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)
|
