DEJA BREW level

Hello

I don’t understand what to use as a code to pass this level:

My code is:

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 - numToTakeDown + “potions of health on the wall.”)

it gives me the GOAL:INCOMPLETE error. Please help.

1 Like

Welcome‌ ‌welcome‌ ‌to‌ ‌the‌ ‌forum!‌ ‌It‌ ‌is‌ ‌a‌ ‌lovely‌ ‌place‌ ‌where‌ ‌you‌ ‌can‌ ‌share‌ ‌all‌ ‌kinds‌ ‌of‌ stuff‌ ‌(appropriate‌ ‌of‌ ‌course),‌ ‌share‌ ‌bugs,‌ ‌and‌ ‌even‌ ‌get‌ ‌assistance‌ ‌for‌ ‌code!‌ ‌We‌ ‌suggest‌ ‌that‌ ‌you‌ ‌review‌ ‌this‌‌ topic‌ ‌which‌ ‌shows‌ ‌all‌ ‌essentials‌ ‌of‌ ‌this‌ ‌board!‌ ‌And‌ ‌we‌ ‌suggest‌ ‌you‌ ‌review‌ this topic‌ ‌which‌ ‌shows‌ ‌how‌ ‌to‌ ‌post‌ ‌your‌ ‌code‌ ‌correctly!‌ ‌Thanks!!‌ ‌ :partying_face: :partying_face:
Please format your code correctly
Lydia

1 Like
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 - numToTakeDown + “potions of health on the wall.”)

Formatted your code. Your quotes are wrong.

what eric means is that you need to change your quotes from the Chinese quote to the normal quote like this type of quote "
so from this:

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 - numToTakeDown + “potions of health on the wall.”)

too this

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 - numToTakeDown + "potions of health on the wall.")