import random answer="y" total=0 while answer !="n": dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print(dice1) print(dice2) if dice1+dice2==2: print("snake eyes") total=total+dice1 + dice2 print(total) answer=input("Do you want to roll again? y/n")