as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a rock-paper-scissor game in python.
user
import random

options = ["rock", "paper", "scissors"]

player1 = input("player1 choose: ")
player2 = random.choice(options)

if player1 == player2:
    print("it's a tie!")
elif player1 == "rock":
    if player2 == "paper":
        print("player2 wins!")
    elif player2 == "scissors":
        print("player1 wins!")
elif player1 == "paper":
    if player2 == "rock":
        print("player1 wins!")
    elif player2 == "scissors":
        print("player2 wins!")
elif player1 == "scissors":
    if player2 == "rock":
        print("player2 wins!")
    elif player2 == "paper":
        print("player1 wins!")
else:
    print("invalid input. you have not entered rock, paper or scissors, try again.")
assistant