[SOLVED]I need help with Deja Brew

can I have help? this is my code so far:

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”)

1 Like

Please format your code correctly @codeneedhelp.
format code
we can’t help you until then.

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 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”)


2 Likes

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

1 Like

Yes but also his quotes are wrong again.

2 Likes

Good find, @Eric_Tang . The first line of the song has correct quotes. use those for the rest.

1 Like

It’s not really working

1 Like

This is my code now:

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!")

1 Like

You still need to format correctly.

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 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!")
1 Like

You havn’t done this yet

1 Like

Okay, thank you CocoCharlie

1 Like

Did you get it? If so, good job! and please click the ‘solved’ box if it works.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.