0
I'm trying to output a function but it is an error in syntax at "if s==x"?Can you please help me?
import random m=["rock","paper","scissor"] x=str(random.choice(m)) s=str(input("Choose r/p/s and enter \n :") if s==x: print("awesome") else: print("not cool")
3 Respostas
+ 2
You're missing a closing parenthesis on the previous line :)
+ 1
Dude eventhough the question was dump, thanks for the answer,... I was going crazy with this. Thanks dude.
0
As far as I'm concerned, there's no such thing as a dumb question :)
I lost count of how much hair I've lost trying to troubleshoot these issues where the error points to one line, but the actual mistake is on another one :)