Race Result Details |
| Racer | Alvaro Ricaldi (alvarori) |
| Race Number | 5 |
| Date | Sun, 8 Jun 2025 0:45:01 |
| Universe | code |
| Speed |
29 WPM
Try to beat?
|
| Accuracy | 92.7% |
| Rank | 8th place (out of 18) |
| Opponents | blizhte (7th 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)
|
