Basic Dice Rolling Simulator | |
import random min = 1 max = 6 roll_again = “yes” while (roll_again == “yes”): print(“Rolling, rolling, rolling…”) print(“The values are…”) print(str(random.randint(min, max)), str(random.randint(min, max))) roll_again = input(“Roll again?”) | Rolling, rolling, rolling… The values are… (‘3’, ‘1’) Roll again? yes Rolling, rolling, rolling… The values are… (‘4’, ‘1’) Roll again? no |