+ 1

Help with sintax on python

I'm writting a code on my desktop, a rpg game. But a if statement on final of the page don't work. File "..\Playground\", line 55 if JJ == "Cave":^ SyntaxError: invalid syntax (the ^ is for ":"). Someone can help how I resolve? Ps : The first code is complete version, the second just the function with problem. https://code.sololearn.com/cSc2Y38vwXlJ/#py https://code.sololearn.com/cGdTC6b151XY/#py

3rd Feb 2018, 9:18 AM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar
4 Respuestas
+ 2
JJ = (input("Where loook?") there is no need for ( before input
3rd Feb 2018, 9:22 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 3
So should look like this, verbatim: JJ = input(“Where loook?”)
3rd Feb 2018, 9:31 AM
Jon
Jon - avatar
+ 3
you forgot a bracket thats all (-:
3rd Feb 2018, 9:37 AM
Oma Falk
Oma Falk - avatar
+ 2
yeah, now I see. Thanks. Python is difficult because of sintax
3rd Feb 2018, 10:22 AM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar