import random choice = "roll" while choice == "roll": dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) score = dice1 + dice2 print("You rolled", dice1, "and", dice2) print("Your score is", score) if score == 2: print("Snake Eyes! Game Over") else : dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) choice = input("Roll again (y/n): ")