import random dice1 = 0 dice2 = 0 score = dice1 + dice2 print("Roll 1 ------------------") print("You roll", dice1, "and", dice2) print("Your score is", score) if score == 0 : print("Snake Eyes ") quit() y = "y" n = "n" yn = input("Roll again (y/n)? ") if yn == y : import random dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) print("Roll 2 ------------------") print("You roll", dice1, "and", dice2) print("Your score is", dice1 + dice2) if yn == n : print("Game Over --------------------") print("Your final score:", dice1 + dice2) quit() y = "y" n = "n" yn = input("Roll again (y/n)? ") if yn == y : import random dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) print("Roll 2 ------------------") print("You roll", dice1, "and", dice2) print("Your score is", dice1 + dice2) y = "y" n = "n" yn = input("Roll again (y/n)? ") if yn == y : import random dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) print("Roll 2 ------------------") print("You roll", dice1, "and", dice2) print("Your score is", dice1 + dice2)