import random play = "Yes" while play == "Yes" : dice = random.randint( 1, 6 ) dice2 = random.randint( 1,6 ) print( dice + dice2 ) play = input( "Would you like to play again?" )