# Long range division problem

**URL:** <https://discourse.codecombat.com/t/long-range-division-problem/28889>\
**Category:** Level Help\
**Created:** [May 13, 2021, 4:18pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889 "2021-05-13T16:18:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abelardus](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Abelardus](https://discourse.codecombat.com/u/Abelardus)\
**Post date:** [May 13, 2021, 4:18pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/1 "2021-05-13T16:18:33Z")

</div>

this is my code:

![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/4/2/421eab9a6f1c53507a8f646dd13882f796bca65a.png)

I do not know what I’m doing wrong!!

soo annoying!

---

<div class="post-metadata">

**Author:** ![abc](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@abc](https://discourse.codecombat.com/u/abc)\
**Post date:** [May 13, 2021, 4:26pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/2 "2021-05-13T16:26:42Z")

</div>

Say the distance without the quotation marks.  
So for the first one:

```python
distance1 = distanceToEnemy/3
hero.say(distance)

```

When you say the variable, you are saying the value of that variable. When you say a string, you are saying the string. Saying `hero.say("second RdistancetoEnemy/3")` will make your hero say second RdistancetoEnemy/3.

---

<div class="post-metadata">

**Author:** ![Abelardus](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Abelardus](https://discourse.codecombat.com/u/Abelardus)\
**Post date:** [May 13, 2021, 4:37pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/3 "2021-05-13T16:37:23Z")

</div>

nope, it still does not work for me.

---

<div class="post-metadata">

**Author:** ![Abelardus](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Abelardus](https://discourse.codecombat.com/u/Abelardus)\
**Post date:** [May 13, 2021, 5:00pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/4 "2021-05-13T17:00:06Z")

</div>

i do not know what to do i do not know what to do and i do not get what im doing wrong in my work!

---

<div class="post-metadata">

**Author:** ![ac3](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ac3/32/22375_2.png) [@ac3](https://discourse.codecombat.com/u/ac3)\
**Post date:** [May 13, 2021, 6:04pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/5 "2021-05-13T18:04:18Z")

</div>

@Abelardus i do not know how to do this level but next time please format your code by pressing the \</\> button in the top left of the response. like this

```python
enemy = hero .findNearestEnemy()
hero.say()

```

this is just an example. formating your code makes it easier for us to help you

---

<div class="post-metadata">

**Author:** ![Abelardus](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@Abelardus](https://discourse.codecombat.com/u/Abelardus)\
**Post date:** [May 13, 2021, 6:10pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/6 "2021-05-13T18:10:56Z")

</div>

thank you i got to finish the level! thx to both of you guys!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)\
**Post date:** [May 14, 2021, 12:03pm UTC](https://discourse.codecombat.com/t/long-range-division-problem/28889/7 "2021-05-14T12:03:15Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
