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
Josh Foster
696 Pointscant 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
Nicolas Bassano
2,125 PointsHi 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.
Steven Parker
243,656 PointsThe 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.
Nicolas Bassano
2,125 PointsNicolas Bassano
2,125 PointsCode 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!!