import random score = 0 rolls = 0 def roll1() : dice1 = random.randint(1,6) return dice1 def roll2() : dice2 = random.randint(1,6) return dice2 def Main(s, rolls) : while True : StartI = input("Input to start") value1 = roll1() value2 = roll2() rolls += 1 print(" ") print("Roll : ", rolls) print("------------------------") print("Dice 1 rolled : ", value1, " :") print("Dice 2 rolled : ", value2, " :") s += value1 s += value2 if value1 == 1 : if value2 == 1 : print("Snake eyes") print("Final score : 0") print("Better luck next time") break restart = input("-- Wish to reroll? y/n - ") if restart == "N".casefold() : print("Final score : ", s) if s == 0 : print("Do better") break elif restart != "Y".casefold() : print("You inputed a character that was not y/n - the game has stopped") print("Final score : ", score) break if __name__ == "__main__" : Main(score, rolls)