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

Arnold Dublin
Arnold Dublin
1,357 Points

python basics index code challenge

I did everything but there still saying be sure to use split to break apart available need some help.

banana.py
available = "banana split;hot fudge;cherry;malted;black and white"
"banana split;hot fudge;cherry;malted;black and white".split(';')
'banana split', 'hot fudge', 'cherry', 'malted', 'black and white'
sundaes = ['banana split', 'hot fudge', 'cherry', 'malted', 'black and white']

2 Answers

Stormberg is my name
Stormberg is my name
5,250 Points

You are adding answer...programming you have to strict with rules.you have to split the string and store into new string variable.do sundaes=available. split(';')

Arnold Dublin
Arnold Dublin
1,357 Points

Stormberg is my name think u very much really appreciate it.

Stormberg is my name
Stormberg is my name
5,250 Points

Don't worry just keep practising..and use google for everything...don't stress your mind too much to learn everything together.sometimes you don't even know a bit about something and 1 or 2 days you know much about that thing that you can work with the concepts.keep practising and believe in yourself.just use google for everything you don't know..best of luck.