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

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

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

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

Hi there, William! You are likely to get help in a more timely fashion if you post a clear question and a link to the challenge. Also, posting what you've tried already will help us isolate what you're not understanding completely and result in a better learning experience for you. You can take a look at the "Markdown Cheatsheet" link located at the bottom of the "Add an Answer" section for instructions on how to properly include your code when posting here. Hope to hear from you soon! :sparkles:

4 Answers

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

Hi again, William. It looks like you might simply have a typo. You have misspelled "sundaes" as "sundeas". Note the reversal of the "a" and "e" in the two spellings. Try again with the correctly spelled variable. Let me know if you're still stuck! :sparkles:

are you having trouble with the split method? it's YOUR_STRING.split('delimiter') where delimiter is what you want to split on, here the semicolon ; . delimiter must be in quotes, like any string. it returns a list of the now-separated words.

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

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