Help - python - Deja Brew


#1

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?


#2

Learn how to format your code properly and read this topic carefully : Deja Brew (code doesn’t work)