Race Result Details |
| Racer | MauricioRiverin (mau_r_1) |
| Race Number | 6 |
| Date | Mon, 21 Oct 2024 2:28:50 |
| Universe | code |
| Speed |
30 WPM
Try to beat?
|
| Accuracy | 96.6% |
| Rank | 3rd place (out of 12) |
| Opponents | jos3ar (2nd place) karol_mm (6th place) kazaam37 (4th place) zzdroxbazz (1st 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)
|
