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

Alexandra Ciorra
seal-mask
.a{fill-rule:evenodd;}techdegree
Alexandra Ciorra
Python Web Development Techdegree Student 796 Points

I'm starting over and need help!

I can't seem to figure out the final step. Can someone explain it to me?

banana.py
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(';')
menu = "Our available flavors are: {}".format("; ".join(sundaes))
display_menu = "' ".join(sundaes)

1 Answer

Hi Alexandria,

Two things:

  1. In your display_menu assignment, you have an apostrophe (') instead of a comma (,).
  2. You're missing the menu reassignment where you have to change the format of the string. I won't post the solution here, but with the update to display_menu and your previous code, it should be a cinch : )

Please let me know if you have any questions and I'll be happy to help.