Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Blackwoods - level 74 - problem with code

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

Hi remember to format your code like this:

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

which world is this? I might be able to help

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

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

oh oops sorry @EpicCoder999

wait no we both formated the same

you did not indent nor put proper brackets

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

Hi,

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

OK 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

OK then(20characters)

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

FINE I SPAMMED!! Ok??? Happy?

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 :grin:.
I’m glad you help people at all, most users don’t.
Danny

oh ok then(bye bye @Deadpool198 )