# Blackwoods - level 74 - problem with code

**URL:** <https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877>\
**Category:** Level Help\
**Created:** [May 28, 2020, 12:39pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877 "2020-05-28T12:39:11Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pog\_78](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Pog\_78](https://discourse.codecombat.com/u/Pog_78)\
**Post date:** [May 28, 2020, 12:39pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/1 "2020-05-28T12:39:11Z")

</div>

Hi,  
I can’t find where’s the mistake in my code. I checked other posts…but with no sucess. Please help ?

potionsOnTheWall = 10  
numToTakeDown = 1  
while True:  
hero.say(potionsOnTheWall + " potions of health on the wall!")  
# Chantez la ligne suivante:  
hero.say(potionsOnTheWall + " potions of health!")  
# Chantez la ligne suivante:  
hero.say(“take” + numToTakeDown + “down, pass it around!”)  
potionsOnTheWall -= numToTakeDown  
# Chantez la dernière ligne:  
hero.say(potionsOnTheWall + “potions of healh on the wall.”)  
pass

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [May 28, 2020, 12:54pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/2 "2020-05-28T12:54:55Z")

</div>

Hi remember to format your code like this:

```python
potionsOnTheWall = 10
numToTakeDown = 1
while True:
hero.say(potionsOnTheWall + " potions of health on the wall!")
# Chantez la ligne suivante:
hero.say(potionsOnTheWall + " potions of health!")
# Chantez la ligne suivante:
hero.say(“take” + numToTakeDown + “down, pass it around!”)
potionsOnTheWall -= numToTakeDown
# Chantez la dernière ligne:
hero.say(potionsOnTheWall + “potions of healh on the wall.”)
pass

```

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [May 28, 2020, 12:55pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/3 "2020-05-28T12:55:14Z")

</div>

which world is this? I might be able to help

---

<div class="post-metadata">

**Author:** ![EpicCoder999](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/epiccoder999/32/12768_2.png) [@EpicCoder999](https://discourse.codecombat.com/u/EpicCoder999)\
**Post date:** [May 29, 2020, 1:49am UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/4 "2020-05-29T01:49:19Z")

</div>

sorry @Jeremy_Yu , that’s still not formatted properly.

```python
potionsOnTheWall = 10
numToTakeDown = 1
while True:
    hero.say(potionsOnTheWall + " potions of health on the wall!")
    # Chantez la ligne suivante:
    hero.say(potionsOnTheWall + "potions of health!")
    # Chantez la ligne suivante:
    hero.say('take' + numToTakeDown + 'down, pass it around!')
    potionsOnTheWall -= numToTakeDown
    # Chantez la dernière ligne:
    hero.say(potionsOnTheWall + 'potions of healh on the wall.')
    pass

```

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [May 29, 2020, 1:51am UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/5 "2020-05-29T01:51:00Z")

</div>

oh oops sorry @EpicCoder999

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [May 29, 2020, 1:56am UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/6 "2020-05-29T01:56:15Z")

</div>

wait no we both formated the same

---

<div class="post-metadata">

**Author:** ![EpicCoder999](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/epiccoder999/32/12768_2.png) [@EpicCoder999](https://discourse.codecombat.com/u/EpicCoder999)\
**Post date:** [May 29, 2020, 2:41am UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/7 "2020-05-29T02:41:22Z")

</div>

you did not indent nor put proper brackets

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [May 29, 2020, 11:32am UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/8 "2020-05-29T11:32:02Z")

</div>

oh cuz i just copied and pasted his code and then formatted it

---

<div class="post-metadata">

**Author:** ![Pog\_78](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Pog\_78](https://discourse.codecombat.com/u/Pog_78)\
**Post date:** [June 1, 2020, 12:21pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/9 "2020-06-01T12:21:16Z")

</div>

Hi,

Thanks guys, still not working!!!  
Can you help me?

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [June 1, 2020, 1:06pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/11 "2020-06-01T13:06:24Z")

</div>

OK yeesh just stop it!

---

<div class="post-metadata">

**Author:** ![Deadpool198](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/deadpool198/32/16753_2.png) [@Deadpool198](https://discourse.codecombat.com/u/Deadpool198)\
**Post date:** [June 1, 2020, 4:53pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/12 "2020-06-01T16:53:23Z")

</div>

> [@Jeremy\_Yu](#):
>
> yeesh just stop it!

Calm down.  
Xython has a point. If the code isn’t formatted just say: please format your code and link the topic which tells you how to do it. 7 posts are not required.  
Thanks  
Danny

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [June 1, 2020, 5:25pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/13 "2020-06-01T17:25:27Z")

</div>

OK then(20characters)

---

<div class="post-metadata">

**Author:** ![EpicCoder999](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/epiccoder999/32/12768_2.png) [@EpicCoder999](https://discourse.codecombat.com/u/EpicCoder999)\
**Post date:** [June 1, 2020, 8:11pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/14 "2020-06-01T20:11:56Z")

</div>

how? i only posted 2! i didn’t spamm!

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [June 1, 2020, 9:19pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/15 "2020-06-01T21:19:50Z")

</div>

FINE I SPAMMED!! Ok??? Happy?

---

<div class="post-metadata">

**Author:** ![Deadpool198](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/deadpool198/32/16753_2.png) [@Deadpool198](https://discourse.codecombat.com/u/Deadpool198)\
**Post date:** [June 2, 2020, 2:38pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/16 "2020-06-02T14:38:15Z")

</div>

Ok, Ok. Let’s keep it calm.  
You’re right, you didn’t “spam”, it’s just that sometimes you post quite a lot of posts which could confuse new users who are looking for help and other people trying to help them, when one or two posts would suffice. That’s all I’m saying 😁.  
I’m glad you help people at all, most users don’t.  
Danny

---

<div class="post-metadata">

**Author:** ![Jeremy\_Yu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/jeremy_yu/32/12445_2.png) [@Jeremy\_Yu](https://discourse.codecombat.com/u/Jeremy_Yu)\
**Post date:** [June 2, 2020, 3:05pm UTC](https://discourse.codecombat.com/t/blackwoods-level-74-problem-with-code/21877/17 "2020-06-02T15:05:48Z")

</div>

oh ok then(bye bye @Deadpool198 )
