import time import random print ("Dice game") time.sleep(1) game1 = input time.sleep(1) print("Roll 1") time.sleep(1) print("Rolling...") dice1 = random.randint(1, 6) time.sleep(1) print ("you got a", dice1) time.sleep(1) print("roll 2") time.sleep(1) print ("Rolling...") dice2 = random.randint(1, 6) time.sleep(2) print ("you got a", dice2) time.sleep(2) print("Your roll is a,", dice1,",", dice2) total = dice1 + dice2 print (total) print("Roll again? ") time.sleep(1) yesorno = input() if yesorno == "yes": while True: dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) time.sleep(1) total += dice1 + dice2 print("Roll again? ") time.sleep(1) yesorno = input() if yesorno != "yes": break elif yesorno == "no": print("Total:", total)