import time import random time.sleep(1) print("Roll 1") time.sleep(2) print("Rolling...") dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) time.sleep(1) print("Your roll is a,", dice1, dice2) total = dice1 + dice2 if dice1 is dice2: print ('BUST') else: 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) print("Your roll is a,", dice1, dice2) total = total + dice1 + dice2 if dice1 is dice2: print("BUST") else: print(total) print("Roll again? ") time.sleep(1) yesorno = input() if yesorno != "yes": break elif yesorno == "no": print("Total:", total)