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

Python Python Basics (2015) Python Data Types Use .split() and .join()

join

Cant seem to resolve this code issue

banana.py
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
Seth Kroger
56,413 Points

You 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
Torsten Lundahl
2,570 Points

Keep 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!

Thank you! Much appreicated