dice1 =1 dice2 =1 no = 1 replay = "y" import random while replay == "y": print("roll ", no, " ---------------") dice1 = random.randint( 1, 6 ) dice2 = random.randint(1,6) print("you roll", dice1,"and", dice2) replay = input("roll again (y/n)") no = no+1 if replay == "n": break