Record your races with a typeracer account:
Create Your Account- Save your race history and scores.
- Customize your profile and racecar.
- It’s free, why not?
Race Result Details |
Racer | Shaileshbhai Chaudhari (shailesh0301) |
Race Number | 34 |
Date | Tue, 6 Feb 2024 08:15:49 +0000 |
Universe | code |
Speed | 50 WPM Try to beat? |
Accuracy | 95.5% |
Rank | 1st place (out of 2) |
Text typed:
import random
min = 1
max = 6
roll_again = "yes"
while roll_again == "yes" or roll_again == "y":
print "Rolling the dices..."
print "The values are...."
print random.randint(min, max)
print random.randint(min, max)
roll_again = raw_input("Roll the dices again?")
— Roll the Dice
(other)
by www.pythonforbeginners.com/
(see stats)
|