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

Now make a new variable ...

and I enter "menu = "our avilable flavors are: {}."" exactly as asked to do. But get the error your menu string does not have the correct ...

2nd question, what good is the "preview"? It doesn't show anything related to the code I am trying to figure out.

banana.py
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "our avilable flavors are: {}."

2 Answers

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

Hi there! Challenges can be very strict with what they are expecting. As Tommy Tayler points out, you've misspelled "available" in this string. The period/full stop should be at the end of the string. However, the word "our" should be capitalized.

If you fix the capitalization and the spelling, it should pass this step of the challenge.

Good luck! :sparkles:

Tommy Tayler
Tommy Tayler
11,549 Points

available is spelt incorrect when you assign the menu variable in your last line.