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")

3rd Jul 2017, 3:39 PM
Metaphor_
Metaphor_ - avatar
3 Réponses
+ 2
You're missing a closing parenthesis on the previous line :)
3rd Jul 2017, 3:42 PM
Bogdan Sass
Bogdan Sass - avatar
+ 1
Dude eventhough the question was dump, thanks for the answer,... I was going crazy with this. Thanks dude.
3rd Jul 2017, 3:44 PM
Metaphor_
Metaphor_ - avatar
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 :)
3rd Jul 2017, 5:58 PM
Bogdan Sass
Bogdan Sass - avatar