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

Celso Silva
Celso Silva
726 Points

Do you have solution manual to these tasks. It would really help.

Do you have solution manual to these tasks. It would really help.

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

You are very close! The last line is wrong though. The Code Challenge is asking to use the "format" function on the "Our available flavors are: {}". Meantime, it is asking you to join that back, not to split again. Try this code snippet:

available = "banana split;hot fudge;cherry;malted;black and white"

sundaes = available.split(";")
menu = "Our available flavors are: {}.".format(", ".join(sundaes))

3 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

Sorry, there isn't an answer key. As an alternative, almost every challenge and video has forum posts regarding the issues encountered and the relevant solutions. If you search the forum by the challenge name you should see many results.

For example, this link lists all the questions regarding the Using .split() and .join() challenge.

Celso Silva
Celso Silva
726 Points

you not answering my question however. Is there a solution manual to these tasks. Does treehouse provide a solution manual to the challenge tasks. It's really a pain to keep posting simple questions i can resolve on my own if there were an answer key to compare with.

Well, no. Treehouse does not have one, and if they did, anyone can just easily pass any Quiz/Code Challenge.

Celso Silva
Celso Silva
726 Points

I'm a new comer to the site. Thank you. Your content is really great, best I've seen.