# \[SOLVED\] I need help teachers

**URL:** <https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290>\
**Category:** Uncategorized\
**Created:** [April 27, 2017, 2:03pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290 "2017-04-27T14:03:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![coals0](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coals0/32/6236_2.png) [@coals0](https://discourse.codecombat.com/u/coals0)\
**Post date:** [April 27, 2017, 2:03pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/1 "2017-04-27T14:03:08Z")

</div>

Could you plz help me

---

<div class="post-metadata">

**Author:** ![coals0](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coals0/32/6236_2.png) [@coals0](https://discourse.codecombat.com/u/coals0)\
**Post date:** [April 27, 2017, 2:06pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/2 "2017-04-27T14:06:25Z")

</div>

Here is my code to help me complete Blackwoods Forest : Blind Distance

# Tell the wizard the distance to the coming ogres.

# This function finds the nearest enemy and returns the distance to it.

# If there is no enemy, the function returns 0.

def nearestEnemyDistance():  
enemy = hero.findNearestEnemy()  
result = 0  
if enemy:  
result = hero.distanceTo(enemy)  
return result

while True:  
# Call nearestEnemyDistance() and  
# save the result in the variable enemyDistance.  
enemyDistance = nearestEnemyDistance()  
# If the enemyDistance is greater than 0:

```
    # Say the value of enemyDistance variable.
```

---

<div class="post-metadata">

**Author:** ![\_TD\_RodYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_td_rodyt/32/6285_2.png) [@\_TD\_RodYT](https://discourse.codecombat.com/u/_TD_RodYT)\
**Post date:** [April 27, 2017, 3:12pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/3 "2017-04-27T15:12:37Z")

</div>

Please format the code in FAQ format by using the triple brackets or by clicking the \</\> when you edit your post. It could be an indentation issue

---

<div class="post-metadata">

**Author:** ![\_TD\_RodYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_td_rodyt/32/6285_2.png) [@\_TD\_RodYT](https://discourse.codecombat.com/u/_TD_RodYT)\
**Post date:** [April 27, 2017, 3:16pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/4 "2017-04-27T15:16:58Z")

</div>

I believe you forgot a piece of code at the end. Make sure you check that `enemyDistance` is greater than 0. If so, say “`enemyDistance`”

---

<div class="post-metadata">

**Author:** ![coals0](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coals0/32/6236_2.png) [@coals0](https://discourse.codecombat.com/u/coals0)\
**Post date:** [April 27, 2017, 5:41pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/5 "2017-04-27T17:41:12Z")

</div>

i got that part but i have no idea what the next on is 😢

---

<div class="post-metadata">

**Author:** ![\_TD\_RodYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_td_rodyt/32/6285_2.png) [@\_TD\_RodYT](https://discourse.codecombat.com/u/_TD_RodYT)\
**Post date:** [April 27, 2017, 5:57pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/6 "2017-04-27T17:57:06Z")

</div>

What do you mean next one? Make sure you do what I wrote first.

---

<div class="post-metadata">

**Author:** ![coals0](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coals0/32/6236_2.png) [@coals0](https://discourse.codecombat.com/u/coals0)\
**Post date:** [April 27, 2017, 5:58pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/7 "2017-04-27T17:58:18Z")

</div>

i did do that but it still did not work

---

<div class="post-metadata">

**Author:** ![coals0](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coals0/32/6236_2.png) [@coals0](https://discourse.codecombat.com/u/coals0)\
**Post date:** [April 27, 2017, 5:59pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/9 "2017-04-27T17:59:46Z")

</div>

oh i figuerd it out now i completed it

---

<div class="post-metadata">

**Author:** ![\_TD\_RodYT](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_td_rodyt/32/6285_2.png) [@\_TD\_RodYT](https://discourse.codecombat.com/u/_TD_RodYT)\
**Post date:** [April 27, 2017, 6:00pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/10 "2017-04-27T18:00:03Z")

</div>

Congrats. (20 Characters)

---

<div class="post-metadata">

**Author:** ![coals0](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/coals0/32/6236_2.png) [@coals0](https://discourse.codecombat.com/u/coals0)\
**Post date:** [April 27, 2017, 6:01pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-teachers/11290/11 "2017-04-27T18:01:17Z")

</div>

thank you for helping me
