import random dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) player1 = (input("Player 1 Type y to Roll --> ")) score=0 while player1 == "y": dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print("Rolling...") print(dice1) print(dice2) score = dice1 + dice2 + score print("Score =",score) player1=input("play again? y/n " ) if dice1 == dice2: print("Snake Eyes") print(score)