import random play = "y" total = 0 while play == "y": dice1= random.randint(1,6) dice2= random.randint(1,6) if dice1+dice2!=2: print("You roll",dice1,"and",dice2) total = total + dice1 + dice2 print(total) play = input("Roll again(y/n)") else: print("You roll",dice1,"and",dice2) print("snake eyes!!") play="n"