+ 9
What’s wrong with this???
I’m doing a game in Python when this happened when I clicked run: it said SynaxError for the ious in PreviousY
43 Respuestas
+ 7
You need to end your statement with :
+ 5
Hakam Khalil I think you should focus on finishing the Introduction to Python course that you started so that you will understand basic Python syntax.
+ 4
Can you post your code?
+ 2
can you post your code?
+ 2
show more code. If you're trying to create an if statement it supposed to start with if, not elif.
Since you have not provided much code, we don't even know if your code structure is correct.
So share your code in the playground!
+ 2
In line 15 , Remove space between != after previousX
Give proper indentations
Also line 19, what is that after [text]‘’? Did you meant to write = ‘ ’ instead?
+ 2
https://www.geeksforgeeks.org/indentation-in-JUMP_LINK__&&__python__&&__JUMP_LINK/
a lot of parts in the code you posted have incorrect indentations. You have to fix them if you want the code to work.
You probably copied them from somewhere else, and that usually paste the code with incorrect indentation.
+ 1
Its VERY long I need some time ok?
+ 1
Wait acctully ill just send the part
+ 1
elif previousX != x or previousY != y
Then is says SynaxError ious
^^^
+ 1
The ^ is under ious ok
+ 1
Really I never learned that
+ 1
is there a line number in the error message? that would help you track down where it's located...
+ 1
Like after elif or the while thing
+ 1
?
+ 1
Wait i did put “:” at the end
+ 1
But it still says “ious” is wrong in PreviousY
+ 1
Ok
+ 1
Can you please provide the code?
+ 1
Ok i will