# \[Solved\] Help - python - Deja Brew

**URL:** https://discourse.codecombat.com/t/solved-help-python-deja-brew/15327
**Category:** Level Help
**Created:** [July 25, 2018, 10:26am UTC](https://discourse.codecombat.com/t/solved-help-python-deja-brew/15327 "2018-07-25T10:26:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mratranslate](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@mratranslate](https://discourse.codecombat.com/u/mratranslate)
#### Post date: [July 25, 2018, 10:26am UTC](https://discourse.codecombat.com/t/solved-help-python-deja-brew/15327/1 "2018-07-25T10:26:30Z")

</div>

potionsOnTheWall = 10  
numToTakeDown = 1  
while True:  
hero.say(potionsOnTheWall + " potions of health on the wall!")  
# Sing the next line:  
hero.say(potionsOnTheWall + " potions of health!")  
# Sing the next line:  
hero.say(“Take " + numToTakeDown + " down, pass it around!”  
potionsOnTheWall -= numToTakeDown  
# Sing the last line:  
hero.say(potionsOnTheWall + " potions of health on the wall.")

Looked at loads of forum posts on this but still can’t see what is wrong with mine? It doesn’t work and freezes on count 5. It also says cannot read undefined start at the beginning?

---

<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: [July 25, 2018, 11:09am UTC](https://discourse.codecombat.com/t/solved-help-python-deja-brew/15327/2 "2018-07-25T11:09:19Z")

</div>

Learn how to format your code properly and read this topic carefully : [Deja Brew (code doesn’t work)](https://discourse.codecombat.com/t/deja-brew-code-doesnt-work/14750/2)

---

<div class="post-metadata">

### Author: ![LunaFromTheMoon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lunafromthemoon/32/37747_2.png) [@LunaFromTheMoon](https://discourse.codecombat.com/u/LunaFromTheMoon)
#### Post date: [August 15, 2020, 6:25pm UTC](https://discourse.codecombat.com/t/solved-help-python-deja-brew/15327/3 "2020-08-15T18:25:16Z")

</div>

```python
# You can add strings together, and add numbers into strings.
# Sing along, using string concatenation:
# X potions of health on the wall!
# X potions of health!
# Take Y down, pass it around!
# X-Y potions of health on the wall.

potionsOnTheWall = 10
numToTakeDown = 1
while True:
    hero.say(potionsOnTheWall + " potions of health on the wall!")
    # Sing the next line:
    pet.say(potionsOnTheWall + " potions of health!")
    # Sing the next line:
    hero.say("Take " + numToTakeDown + " down, pass it around!")
    potionsOnTheWall -= numToTakeDown
    # Sing the last line:
    hero.say(potionsOnTheWall + " potions of health on the wall.")

```

This is super frustrating, I already finished the Backwords Forest and this is one of the only levels I have left. I sing each line the same as the others and it says I didn’t. What is my problem?

---

<div class="post-metadata">

### Author: ![MidnightWolf39](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/midnightwolf39/32/13309_2.png) [@MidnightWolf39](https://discourse.codecombat.com/u/MidnightWolf39)
#### Post date: [August 15, 2020, 6:56pm UTC](https://discourse.codecombat.com/t/solved-help-python-deja-brew/15327/4 "2020-08-15T18:56:53Z")

</div>

> [@LunaFromTheMoon](#):
>
> `pet.say(potionsOnTheWall + " potions of health!")`

Your hero has to say it.
