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

Adi Jain
Adi Jain
2,771 Points

What am I doing wrong I even went to the forums to check and it still isnt working

Alright, let's finish making our menu. Combine the sundaes list into a new string, joining them with a comma and a space (", "). Use that string with a .format() on our existing menu variable and replace the current value of menu.

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

2 Answers

I think you are missing a space after your comma ("," instead of ", ")

Adi Jain
Adi Jain
2,771 Points

Thanks, I just realized that it was a silly mistake and I need to read the question thoroughly to find those small details thanks!

Zachary Kaufman
Zachary Kaufman
1,463 Points

I'm not 100% sure that this is the problem, but you never did .format in your string on line 3 for the menu variable. Try doing that and see if it works, if I'm not mistaken the menu variable needs to be on line 5, and the current line 5 can be deleted, you have to have format immediately after the string. Again I'm not sure if that's the problem but that's what I would try if I were you.