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

Not sure what to do here with the variable sundaes.

.

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

3 Answers

Steven Turturo
Steven Turturo
6,890 Points

The instructions tell you to use .split() to remove the semi-colons.

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

sundaes = available.split(';')

when I put that, it says syntax error. is this bugged?

Steven Turturo
Steven Turturo
6,890 Points

I'm not sure how you're getting a syntax error. I typed it and copied it and it worked in both the workspace and the exercise. Are you sure you are typing it correctly?

It had to have been bugged. I did it again after I sent an email report about the page and then it worked.