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

yannis sousanis
yannis sousanis
7,199 Points

what am I doing wrong now?

i cant find the mistake trying over n hour

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 great! There's just an inconsistency in the last string. The challenge asks for the the string to be "Our available flavors are: ". But you're using the British spelling of the word "flavors". If I simply remove the extraneous "u" to make it the American English variant, your code passes all three steps!

Hope this helps! :sparkles:

yannis sousanis
yannis sousanis
7,199 Points

thank you very much , I cant believe I spent one hour for this...lol

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

Don't feel badly, we all get tripped up on something. I once got tripped up on a challenge for three hours because I was using an incorrect quotation mark :smiley: