# hero.findEnemies() Quiz

**URL:** <https://discourse.codecombat.com/t/hero-findenemies-quiz/17873>\
**Category:** Uncategorized\
**Created:** [March 16, 2019, 9:36pm UTC](https://discourse.codecombat.com/t/hero-findenemies-quiz/17873 "2019-03-16T21:36:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![xython](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xython/32/7269_2.png) [@xython](https://discourse.codecombat.com/u/xython)\
**Post date:** [March 17, 2019, 8:37pm UTC](https://discourse.codecombat.com/t/hero-findenemies-quiz/17873/5 "2019-03-17T20:37:33Z")

</div>

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)](https://discourse.codecombat.com/t/enemy-null-filter-confusingly-functioning-solved/8420/4?u=xython)

---

_[View the full topic](https://discourse.codecombat.com/t/hero-findenemies-quiz/17873)._
