import random def roll_dice(): dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) return dice1, dice2 def main(): print("this is the Dice Game!") total_score = 0 while True: input("Press Enter to roll the dice 🎲🎲") dice1, dice2 = roll_dice() total = dice1 + dice2 print(f"You rolled: Dice 1 = {dice1}, Dice 2 = {dice2}. Total: {total}") total_score += total play_again = input("Do you want to roll again? 🌚 (y/n): ").strip().lower() if play_again != 'y': break print(f"Your final whole score is: {total_score}.💩") print("Thanks for playing!") if __name__ == "__main__": main()