# The Wizards door (backwood forest) IS REALLY HARD!

**URL:** <https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948>\
**Category:** Uncategorized\
**Created:** [September 13, 2016, 12:23pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948 "2016-09-13T12:23:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonicrosebeam](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/sonicrosebeam/32/4594_2.png) [@sonicrosebeam](https://discourse.codecombat.com/u/sonicrosebeam)\
**Post date:** [September 13, 2016, 12:23pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948/1 "2016-09-13T12:23:55Z")

</div>

i need help with the wizards door. my code (i use python)

```python
# Move to Laszlo and get his secret number.
hero.moveXY(30, 13)
las = hero.findNearestFriend().getSecret()

# Add 7 to Laszlo's number to get Erzsebet's number.
# Move to Erzsebet and say her magic number.
erz = las + 7
hero.moveXY(17, 26)
hero.say(erz)

# Divide Erzsebet's number by 4 to get Simonyi's number.
# Go to Simonyi and tell him his number.

# Multiply Simonyi's number by Laszlo's to get Agata's number.
# Go to Agata and tell her her number.

```

i just dont understand what to do…

---

<div class="post-metadata">

**Author:** ![RobAnybody](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@RobAnybody](https://discourse.codecombat.com/u/RobAnybody)\
**Post date:** [September 13, 2016, 3:52pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948/2 "2016-09-13T15:52:27Z")

</div>

first:  
secret  
second:  
secret + 7  
third:  
(7 + secret) % 4  
last:  
((7 + secret) % 4)\*secret

---

<div class="post-metadata">

**Author:** ![sonicrosebeam](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/sonicrosebeam/32/4594_2.png) [@sonicrosebeam](https://discourse.codecombat.com/u/sonicrosebeam)\
**Post date:** [September 14, 2016, 12:27pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948/3 "2016-09-14T12:27:02Z")

</div>

im sorry, but i dont understand…could you please explain? (and i use python)

---

<div class="post-metadata">

**Author:** ![Harry\_the\_Wanderer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/harry_the_wanderer/32/5369_2.png) [@Harry\_the\_Wanderer](https://discourse.codecombat.com/u/Harry_the_Wanderer)\
**Post date:** [September 14, 2016, 4:35pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948/4 "2016-09-14T16:35:00Z")

</div>

@sonicrosebeam So you are being asked to look at the code provided as an example:

```python
# Add 7 to Laszlo's number to get Erzsebet's number.
# Move to Erzsebet and say her magic number.
erz = las + 7
hero.moveXY(17, 26)
hero.say(erz)

```

The above code is what you will be using to create more code.

There are 3 steps to the process, the first being given, complete the next two.

# 2

```python
# Divide Erzsebet's number by 4 to get Simonyi's number.
# Go to Simonyi and tell him his number.

```

# 3

```python
# Multiply Simonyi's number by Laszlo's to get Agata's number.
# Go to Agata and tell her her number.

```

Those are the instructions of what to do.

* * *

&nbsp;

Erzsebet’s number is the value stored in the variable `erz`  
or in this case: `erz = las + 7`

Laszlo’s number is the value stored in `las`  
it is: `las = hero.findNearestFriend().getSecret()`

If `las` was 7 then `era` would be 7 + 7 or 14. Does that make sense?

&nbsp;

They are asking you to create a variable for **Simonyi’s number** and **Agata’s number** and then store a value in them. You could use `sim` for a variable name for Simonyi’s number if you wanted  
so: `sim =`

And then you would have to fill in the rest.

They are asking you to create and name the 2 new variables.

---

<div class="post-metadata">

**Author:** ![sonicrosebeam](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/sonicrosebeam/32/4594_2.png) [@sonicrosebeam](https://discourse.codecombat.com/u/sonicrosebeam)\
**Post date:** [September 15, 2016, 12:39pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948/5 "2016-09-15T12:39:12Z")

</div>

thankyou so much for the help!!!

---

<div class="post-metadata">

**Author:** ![Giovanni\_Busacca](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/giovanni_busacca/32/20806_2.png) [@Giovanni\_Busacca](https://discourse.codecombat.com/u/Giovanni_Busacca)\
**Post date:** [November 26, 2018, 3:18pm UTC](https://discourse.codecombat.com/t/the-wizards-door-backwood-forest-is-really-hard/8948/6 "2018-11-26T15:18:47Z")

</div>

Why so the numbers change every time i submit it just makes me redo the math plz help
