Race Result Details |
| Racer | Erick (erick0334) |
| Race Number | 55 |
| Date | Sun, 8 Jun 2025 0:44:38 |
| Universe | code |
| Speed |
35 WPM
Try to beat?
|
| Accuracy | 93.1% |
| Rank | 4th place (out of 18) |
| Opponents | alvarori (8th place) blizhte (7th place) eliasbaltazar (5th 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)
|
