#program to play a simple dice game import random Score = 0 AnotherGo = "Y" while AnotherGo=="Y" or AnotherGo =="y": Die1 = random.randint(1,6) Die2 = random.randint(1,6) print ("You rolled", Die1,"and", Die2) if Die1==Die2: Score = 0 print ("Bad luck!") AnotherGo = "N" else: Score = Score + Die1 + Die2 print("Your score is",Score) print("Another go? (Answer Y or N)") AnotherGo = input() print ("Your final score is",Score)