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