print("Roll 1 -----------------") scoremessage=0 import random dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) message= f"You roll {dice1} and {dice2}" print(message) score= dice1+dice2 scoremessage= f"Your score is {score}" score2=score print(scoremessage) if dice1==1 and dice2==1: print("Game Over --------------") print(scoremessage) else : yes = input("Roll again (y/n)? ") if yes=="n ": print("Game Over --------------") print(scoremessage) if yes=="y": print("Roll 2 -----------------") dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) message= f"You roll {dice1} and {dice2}" print(message) score= dice1+dice2 scoremessage2= f"Your score is {score+score2}" score3=score+score2 print(scoremessage2) if dice1==1 and dice2==1: print("Game Over --------------") print(scoremessage) else : yes = input("Roll again (y/n)? ") if yes=="n ": print("Game Over --------------") print(scoremessage) if yes=="y": print("Roll 3 -----------------") dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) message= f"You roll {dice1} and {dice2}" print(message) score= dice1+dice2 scoremessage3= f"Your score is {score+score3}" print(scoremessage3) score4=score+score3 if dice1==1 and dice2==1: print("Game Over --------------") print(scoremessage) else : yes = input("Roll again (y/n)? ") if yes=="n ": print("Game Over --------------") print(scoremessage) if yes=="y": print("Roll 4 -----------------") dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) message= f"You roll {dice1} and {dice2}" print(message) score= dice1+dice2 scoremessage4= f"Your score is {score+score4}" print("You win, your score is:",scoremessage4)