import random def play_game(): options = ["rock", "paper", "scissors"] # Gets the user input user_choice = input("Enter rock, paper, or scissors: ").lower() if user_choice not in options: print("Invalid choice! Please pick one of the options provided") return # program will a random choice computer_choice = random.choice(options) print(f"Computer chose: {computer_choice}") # Determine the winner >:) hehehehehehehehehehe if user_choice == computer_choice: print("It's a tie!") elif (user_choice == "rock" and computer_choice == "scissors" ) or \ (user_choice == "paper" and computer_choice == "rock" ) or \ (user_choice == "scissors" and computer_choice == "paper" ): print("You won. congratulations") else: print("you Lost. maybe next time") rematch = input("Would you like to play again yes(Y) or no(n)").lower() if (rematch == "y" or "yes"): return elif (rematch == "no" or "n"): print("Thanks for playing") else: print("That answer is not compatible. Thanks fo playing") play_game()