Race Result Details |
Racer | Leonardo Espada (leonardo_espada) |
Race Number | 4 |
Date | Wed, 10 Sep 2025 22:12:44 |
Universe | code |
Speed |
21 WPM
![]() |
Accuracy | 90.3% |
Rank | 6th place (out of 9) |
Opponents | brayancoaquira (7th place) fanor (1st place) freddytarqui (4th place) iverjoel (5th place) jhamelpinto (2nd 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)
|