import random answear = "yes" while answear != "no": dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print ( dice1 + dice2 ) answear = input( "play again" )