I have a bad input line on some of the lines and I cant figure out how to fix it. I've been trying to get this to work for awhile and got nothing. I think I am missing a colon but I don't exactly know where.
Edit: I got the line working but 'yourChoice' isnt being defined on line 16
I tried a colon but it didn't work.
import random
def comInput():
yourChoice = input("Rock, Paper, Scissors?")
comChoice = random.randint(1,3)
if comChoice == 1
comChoice = "Rock"
elif comChoice == 2
comChoice = "Paper"
elif comChoice == 3
comChoice = "Scissors"
comInput()
def results():
if(yourChoice == comChoice):
print("It's a tie!")
elif(yourChoice == "Rock" and comChoice == "Paper"):
print("You Lose!")
elif(yourChoice == "Rock" and comChoice == "Scissors"):
print("You Win!")
elif(yourChoice == "Paper" and comChoice == "Rock"):
print("You Win!")
elif(yourChoice == "Paper" and ComChoice == "Scissors"):
print("You Lose!")
elif(yourChoice == "Scissors" and comChoice == "Rock"):
print("You Lose!")
elif(yourChoice == "Scissors" and comChoice == "Paper"):
print("You Win!")
results()