Race Result Details |
Racer | jhosmar_mamani_cayo (jhosmar_mamani_cayo) |
Race Number | 2 |
Date | Mon, 31 Mar 2025 0:40:45 |
Universe | code |
Speed |
34 WPM
![]() |
Accuracy | 92.2% |
Rank | 3rd place (out of 20) |
Opponents | alexbeltrantarqui (8th place) erick0334 (4th place) jas_el1 (2nd place) jgary198 (10th place) mau_r123 (5th place) sergio_apaza (1st place) sharick_chungara (7th 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)
|