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 trialjammie Hargreaves
Courses Plus Student 2,455 Pointsjoin
Cant seem to resolve this code issue
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "our available flavors are: {}"
display_menu = ", ".join(sundaes)
menu.format(display_menu)
3 Answers
Seth Kroger
56,413 PointsYou need to reassign menu to the new string. Otherwise it isn't stored or output anywhere. This is the last piece to pass the challenge.
menu = menu.format(display_menu)
Torsten Lundahl
2,570 PointsKeep in mind that the challenges often are very specific. A single dot in a string can cause an error, even when the code itself works fine.
"our available flavors are: {}"
Capitalize 'our' and add a dot at the end.
"Our available flavors are: {}."
Good luck!
jammie Hargreaves
Courses Plus Student 2,455 PointsThank you! Much appreicated