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!

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

Let's add a new string variable for displaying our menu items. Make a new variable named menu that's set to

its from python basics

available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(';')
menu = "our available flavours are: {}.".format(", ".join(sundaes))

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing absolutely terrific. No seriously, your logic and syntax are spot on, it's just your spelling and capitalization that are off a bit. Remeber that challenges are extremely strict and looking for a very specific result. This means it must match to the letter including spelling, punctuation, capitalization and even spacing. Your "our" should be capitalized as "Our" and you've chosen the British English spelling of "flavours" when the challenge explicitly asks for the American English version: "flavors". When I make those two adjustments, your code passes with flying colors! :sparkles:

tanx a lot jennifer