import random Tscore = 0 flag = True while flag == True: dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) score = dice1 + dice2 Tscore += score #rollAgain = input("(y/n)?") if input("Roll (y/n)?") == "y": print("Your first dice rolls", dice1, "Your second dice rolls:", dice2) print("Your total score is:", Tscore) if Tscore >= 200: print("You win! Try again?") Tscore = 0 if dice1 == 1: if dice2 == 1: print("You lose! Your final score is:", 0) Tscore = 0 if dice2 == 1: if dice1 == 1: print("You lose! Your final score is:", 0) Tscore = 0 else: print("Good job! Your final score is:", Tscore) Tscore = 0