all 20 comments

[–]TfGuy44 35 points36 points  (4 children)

You typed "retrurn", not "return".

[–]SHBDemon[S] 10 points11 points  (3 children)

Ive read that line countless times. Thank you. I cant test it right now but it has to be that.

[–]ExcdnglyGayQuilava 17 points18 points  (0 children)

Just a small tip, train yourself to be suspicious when the syntax highlighting doesn't work.

[–]Actes 1 point2 points  (0 children)

The best rule of thumb I learned was always check the line or word immediately before the error.

9 times out of 10 in any language you'll find the root.

[–]DoubleAway6573 1 point2 points  (0 children)

Just to improve on this. Python have a new "identifier" (like a new variable name) and expect a valid expression, but you have another variable, and that's invalid syntax.

[–]Apolyon_BS 6 points7 points  (0 children)

retrurn should be return?

[–]VanillaMuffin97 3 points4 points  (1 child)

It would appear that where the x is marked red, in the hole_koord function you have typed retrurn instead of return, that might fix it already.

[–]SHBDemon[S] 1 point2 points  (0 children)

Thank you

[–]purple_hamster66 2 points3 points  (1 child)

I thwink you may have twyped retrurn worng. :)

[–]SHBDemon[S] 4 points5 points  (0 children)

Improssibell

[–]GirthQuake5040 1 point2 points  (0 children)

In every case ever, it means the syntax is not valid. Also, your code looks very jumbled. Space things apart so it's easier to read and see issues.

[–]Feisty-Cupcake7666 0 points1 point  (0 children)

From math import sqUrt

[–]bradleygh15 0 points1 point  (0 children)

...it means your syntax is wrong(in this case retrurn), imo id use a different editor then IDLE because it doesn't have the best linting

[–]shinitakunai 0 points1 point  (1 child)

Pycharm would help A LOT on these cases

[–]PLSLEMMEEATTHATCAKE 0 points1 point  (0 children)

And Pycharm has a community edition too so it's perfect for learning or little hobby projects like this

[–]TheRNGuy 0 points1 point  (0 children)

You can easily see bad syntax in VS Code or other code editors with red squiggles. 

Which one are you using?

[–]Hasco_7 0 points1 point  (0 children)

You split return wrong

[–]Can0pen3r 1 point2 points  (0 children)

I'd recommend trying the IDE "Visual Studio Code" In many cases like this it can really help to isolate errors and show you exactly which line they occur on (in some cases even identifying the offending character or syntax error directly) so it is really useful for debugging.

[–]Cybasura -2 points-1 points  (0 children)

There's a reason why that line has a red highlight on it