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 on the wall”)
# Sing the next line:
hero.say(potionsOnTheWall + “potions of health on the wall”)
potionsOnTheWall -= numToTakeDown
# Sing the last line:
hero.say(potionsOnTheWall + “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:
hero.say(potionsOnTheWall + “potions of health on the wall”)
# Sing the next line:
hero.say(potionsOnTheWall + “potions of health on the wall”)
potionsOnTheWall -= numToTakeDown
# Sing the last line:
hero.say(potionsOnTheWall + “potions of health on the wall”)
Thank you, @codeneedhelp.
The only problem is you aren’t saying the correct things on the second and third line of the song. run the code, and copy what everyone else is saying. Hope this helps!
~Andrew
potionsO
numToTakeDown = 1
while True:
hero.say(potionsOnTheWall + " potions of health on the wall!")
# Sing the next line:
hero.say(potionsOnTheWall + " potions of health on the wall!")
# Sing the next line:
hero.say(potionsOnTheWall + " potions of health on the wall!")
potionsOnTheWall -= numToTakeDown
# Sing the last line:
hero.say(potionsOnTheWall + " 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:
hero.say(potionsOnTheWall + " potions of health on the wall!")
# Sing the next line:
hero.say(potionsOnTheWall + " potions of health on the wall!")
potionsOnTheWall -= numToTakeDown
# Sing the last line:
hero.say(potionsOnTheWall + " potions of health on the wall!")