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 trialsonam rathore
703 Pointswhat is wrong with the last step of code banana.py
again the same error task1 no longer passing. and do let me know what is the error in my code. thanks.
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes= available.split(';')
display_menu="+ ' '.join(sundaes)
menu= "our available flavors are:{}" .format(",".join(display_menu))
2 Answers
Peyton Watkins
7,946 PointsHave you tried the ways of the lord?
Ryan S
27,276 PointsHi Sonam,
The first thing is that it looks like you are attempting to join sundaes and add it to the variable "display_menu". You have an open quote with no closing quote and a plus sign that isn't adding anything together. You don't need to add sundaes to anything, just join them with a space and a comma and assign it to the variable "display_menu."
display_menu = ', '.join(sundaes)
Then, in your last line, it looks like you are attempting another join of display_menu but you have already accomplished that so you only have to insert "display_menu" in the format() string, i.e., .format(display_menu)
Hope this helps,