Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Alex Rordrigues Do Nascimento
4,634 PointsChallenge Task 3 of 3
what is my mistake help please menu = "Our available flavors are:{}."display_menu",".join(sundaes).format(display_menu)
3 Answers
Mohammed Ismail
7,190 PointsAlex Rordrigues Do Nascimento Hi Alex,
If you can paste your full code and what you are trying to solve, I can give you the exact answer.
Based on my assumptions, Here is my code which may be helpful.
sundaes = ['ApplesCake', 'RoseBrownie', 'ChocolateBarfi'] display_menu =', '.join(sundaes) menu = "Our available flavors are: {} ".format(display_menu) print(menu)
Post back if you are still unable to solve the problem. Thanks!
Alex Rordrigues Do Nascimento
4,634 Pointsavailable = "banana split;hot fudge;cherry;malted;black and white" sundaes = available.split(";") menu = "Our available flavors are:{}."display_menu", ".join(sundaes).format(display_menu)
Jimmy Otis
3,228 Pointsavailable = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {}".format(', '.join(sundaes))
print(menu)
First format, calling the {} place holder, and then from there you can make the variable 'sundaes' back into a string with join.