I have to randomly generate rock paper scissors until it matches with the string typed in but it doesn't run the program which means something is wrong with the code can you help, please?
import random
rps = [rock,paper,scissors]
pchoice =input("rock, paper, scissors?")
cchoice = random.choice(rps)
print("The computer has chosen",cchoice,"!")
if pchoice == cchoice:
print("Snap!")
elif pchoice == "rock" and cchoice =="paper":
print("You lose")
elif pchoice == "paper" and cchoice == "scissors":
print("You lose")
elif pchoice =="scissors" and cchoice == "rock":
print("You lose")
else:
print("you win!")