#imports randomness import random #gives "answer" the property of being the letter "Y" answer = "y" #gives score a refresh to make sure you can't get a cheeted score score = 0 #makes it so the roll starts as the 1st roll not roll 0 rollamount = 1 #allows it to be repeated while answer != "n": #imports the first dice and allows it to be 1 to 6 dice1 = random.randint( 1, 6 ) #imports the second dice and allows it to be 1 to 6 dice2 = random.randint( 1, 6 ) #shows how many times they have rolled print ( "roll", rollamount, "-------------------") #changes the rollamount so that it can acurately show what roll the person is on rollamount = rollamount + 1 if dice1 + dice2 != 2: print ( dice1, + dice2) score = score + dice1 + dice2 print (score) answer = input ("play again?") else : print ("snake-eyes!") answer = "n"