Need help with Blind Distance level


#1

I use Python.
My code is:

It says that:
Unsuported Compare operator: undefined

Please help, I have no idea what could it be


#2

I don’t see any problem with the code in your screenshot. Can you copy and paste the whole code here?


#3

I suppose your problem is here:

distance = nearestEnemyDistance ()

You placed the whitespace between the function’s name and brackets.


#4

This extra space catches my eye too, but I tried to put the same extra space into right code and - ta-daa! - it worked) So, maybe, it really could be something in the first four lines…


#5

Hm. Ok. Then we are waiting the full code :slight_smile:


#6

the first lines are only comments


#7

Anyway, please, post the whole your code. Without it we can’t help you.