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 trialThats Bender
198 PointsHello, I can't figure it out how to complete this task. If you can, please explain me how to do it and why to do so! THX
Can't figure it out, watching 4-5 times and dont know it yet. Please explain me where I'm wrong and why. Thanks a lot on this journey.
available = "banana split;hot fudge;cherry;malted;black and white"
available.split(';')
', '.join(available)
"sundaes: " + ', '.join(available)
1 Answer
Steven Parker
231,269 PointsYou're forgetting to assign your new variables.
Your call to split is good, but you forgot that the challenge said to "Assign this to a new variable sundaes." WIthout storing the result of the function anywhere, it gets "lost".
Later, when you do the join, you'll need that variable (instead of available). ANd of course, that line will have it's own variable assignment.