hero.findEnemies() Quiz

Yes, this is the way this check must be done. ( if enemies.length > 0: will also work in CoCo python )
I have made a search in topics and there are many examples where this error is present. But the catch is the CoCo python isn’t acting as a real python.
If there are no enemies the answer must be ‘No enemies!’ after if enemies: in real python.
see Enemy = Null, filter confusingly functioning (Solved)

2 Likes