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

stuck on this ?

I am not sure if I am following the direction correctly. I could really use some insight. Thanks in advance

banana.py
sundaes = "banana split;hot fudge;cherry;malted;black and white".split(;)

4 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

You have the right idea. The challenge checker also checks for the existence of available so it must be retained.

available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")

you would want to use this: sundaes=available.split(";"). you need to do this because it is how you assign available to the new variable sundaes. I hope this helps!

Thank you so much for your insight.

I really appreciate ALL the help, and insight