Race Result Details |
| Racer | Misael Rocha (blizhte) |
| Race Number | 22 |
| Date | Sun, 8 Jun 2025 0:44:59 |
| Universe | code |
| Speed |
30 WPM
Try to beat?
|
| Accuracy | 94.7% |
| Rank | 7th place (out of 18) |
| Opponents | alvarori (8th place) eliasbaltazar (5th place) erick0334 (4th place) fa1progra (3rd place) fanor (2nd place) jgary192 (10th place) jhony99 (13th place) jhosmar_carlos (1st place) magali_alanoca (11th place) marco_soria (9th place) mau_r123 (6th place) priscilacervantes23 (12th 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)
|
