Ask coding questions

← Back to all posts
Unexpected EOF while parsing?
GoogleTech

I'm making an RPG battle system and I have no idea why this error is here.

Answered by PattanAhmed [earned 5 cycles]
View Answer
Voters
NathanielWeber
Manya-SinghSing
GoogleTech
Comments
hotnewtop
PattanAhmed

@GoogleTech Hi,
It seems your code is incomplete!
But it doesn't matter if you start editing it too.
Just go to line number 66 and type pass under the If Statement and your error will vanish!
And if you started editing the If Statement then, remove that pass from there

With my best wishes
Hope this helps
Please mark my answer if this helps.

PearPie123

At line 66, you start an if statement but you don't add any code to be executed after it. If you want to leave it empty, you can just add the pass keyword instead of code.

GoogleTech

@PearPie123
Thanks a lot! It was unfinished, I just wanted to test it.

HarperframeInc

If your code is unfinished, you will automatically reach an EOF

GoogleTech

@HarperframeInc
Thanks! It was unfinished, I just wanted to test it.

[deleted]

@GoogleTech Can you please invite me so that I can fix it ?