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

Karol Zientek
Karol Zientek
2,006 Points

I can't finish this challenge because of 3rd task

I can't solve this 3rd task, I think I used .format in proper way, but I still cannot solve this .join(", "). Every time I want to check my work it shows me that 1st task wasn't done but I done it in a proper way. Can anyone help me with that or send me a proper, solved code?

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

3 Answers

Steven Parker
Steven Parker
231,269 Points

:point_right: The arguments for join are supplied in the opposite manner of split.

Plus, the challenge says to reassign menu with the result:

menu = menu.format(", ".join(sundaes))
Karol Zientek
Karol Zientek
2,006 Points

Ok, GOT IT! Thanks a lot mate! You helped me so much!

Karol Zientek
Karol Zientek
2,006 Points

What's that? Is that e-mail?