Tried making a rock paper scissors game i failed
so to learn python I was making a rock paper scissors game that detects user input put I'm not sure how I can detect this user input does anyone help me
def play():
while input("Would you like to play rock paper scissors (Y/N)").upper() == "Y":
main()
def main():
userinput = while input("Rock Paper Or Scissors: ").upper()
if userinput == "rock":
print("User Used Rock")
elif userinput == "paper":
print("User Used Paper")
elif userinput == "scissors":
print("User Used Scissors")
else:
print("Invalid Option")
if __name__ == "__main__":
play()