import random count = -1 total = 0 rolling = input("Would you like to play the dice game? y/n: ") if rolling == "y": p = 2 else: p = -1 while p == 2 or roll_again == "y": dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) count = count + 1 total += dice1 + dice2 if dice1 + dice2 == 2: print("You roll 1 and 1") print("Snake eyes!!!") p -= -5 print("Game over---------------") print("Your final score", total) break print("Roll", count) print("Your roll is ", dice1, "and", dice2) print("Your total value is", total) roll_again = input("Do you want to continue? y/n") if roll_again == "n": p -= -5 print("Game over---------------") print("Your final score", total) else: p == 2