import random dice1 = random.randint (1,6) dice2 = random.randint (1,6) finalscore = 0 total = dice1 + dice2 roll = 1 snakeyes = 0 rollagain = 'y' while snakeyes == 0 and rollagain !='n' : print("roll", roll, '-------------------') dice1 = random.randint (1,6) dice2 = random.randint (1,6) print('you roll', dice1, "and", dice2) total = dice1 + dice2 print("your total is", total) finalscore = finalscore + total roll = roll + 1 if dice1 == dice2 : snakeyes = snakeyes + 1 finalscore = 0 if dice1 == dice2 : print('Snake Eyes!!!') if snakeyes == 1 : print("") print('Game Over!! ----------------') print('your finalscore is', finalscore) rollagain == input('Roll Again y/n') if rollagain == 'n' or 'N': print("") print("Game Over --------------") print("your final Score is", finalscore)