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

cant split avaliable list

hi i have tried and i cant figure out how to split this list https://teamtreehouse.com/library/python-basics/python-data-types/use-split-and-join

any help thanks

2 Answers

Hi Josh, I had some problems too when I got to this challenge.

The solution is:

sundaes = available.split(";")

I bet it looks logical once you read the code.

Code challenges are strict. Be sure to read carefully what they ask of you without putting extra stuff.

I usually fire up the Python Shell and do the challenge there before posting. For me its easier to check errors there.

Cheers!!

Steven Parker
Steven Parker
243,656 Points

The explanation of split is covered starting at about 2 minutes into the video Splitting and Joining.

There's an example of it being used for something very similar to what the challenge requires.