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

How can I get feedback on mistakes to complete exercises?

Going through videos to find an answer is very challenging for me because there is no end result to focus on with the exercise. Is there a way I can be told what I'm doing wrong so I can learn from mistakes?

Here is the snippet I am up to. After that I get lost.

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

Thanks Omar

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

2 Answers

Thanks for your reply Jennifer, it is the very specific small details that I get stuck on. I'll keep working on it.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I would be willing to bet that every single one of us has fallen victim to the "devil is in the details" principle on some challenge! You're not alone.

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I do not mean to sound rude here, but the best resources to pass the challenges are the instructions in the challenges themselves. Sometimes a challenge will fail because you didn't use the exact variable name it asked for, or you used string concatenation instead of string interpolation. These are very picky and demand that you follow the instructions to the letter. But, if you get stuck then the community is your best choice as to getting an answer.

Now... to your code! The instructions specifically ask you to create a variable named "sundaes" which I don't see in your code. Take a look at what it wants and compare it against the instructions. Maybe it'll be a bit clearer what they're asking you to do and how the instructions are formulated.

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