import random import time dice1 = random.randint( 1, 10 ) dice2 = random.randint( 1, 10 ) rollagain = "y" roll = 1 snkeye = "n" total = 0 while snkeye == "n": time.sleep(0.1) print("Roll", roll, " ----------") print("You roll", dice1, "and", dice2) print("Your score is", total) if dice1 == 1 and dice2 == 1: snkeye = "y" else: total = total+dice1+dice2 print("Your score:", total) time.sleep(0.05) roll +=1 dice1 = random.randint( 1, 5 ) dice2 = random.randint( 1, 5 ) if snkeye == "n": print("Game Over! --------------------") print("Your final score was ", total) elif snkeye == "y": print("Game Over! --------------------") print("Your final score was ", total)