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

RMZ .
RMZ .
1,002 Points

"Splitting and Joining" Challenge Task 2 of 3

I tried to solve the problem with many possibilities using .join() and .format() but still I was wrong as they said your 'menu' string isn't right. What should I do?

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

2 Answers

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

Hi there! You're doing fantastic! Many people get tripped up on this one, but very few for the reason you are not passing. You're using the British form of "flavours" instead of the American English form of "flavors". Correcting the spelling of this one word causes this code to pass all three steps.

Well done! Hope this helps! :sparkles:

RMZ .
RMZ .
1,002 Points

hahahaa I was so stupid. Thanks a lot for the help Jennifer!