import random Total = 0 times = 1 roll = "y" dice1 = 0 dice2 = 0 while roll != "n": #Dices that are random dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print("Roll",times,"~~~~~~~~~~~~~~") if dice1 == 1 and dice2 == 1: print("You Roll", dice1, "and", dice2) print("Game Over -------------- Your final score: 0") Total = 0 break else: print("you Roll",dice1, "and",dice2) Total = Total+dice1+dice2 times = times+1 print("Score",Total) roll = input("Roll again (y/n)?:") if Total == 0: print("Wow your luck sucks! thanks for playing") else: print("Well Done! Your score is", Total)