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

error pops up 'Did you use ",". join()?' when submitted the code to system

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

codes above can run thru in workspace, but cannot pass the system validation, always say i didn't use join method which i really did use.

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

1 Answer

Ines Fazlić
seal-mask
.a{fill-rule:evenodd;}techdegree
Ines Fazlić
Python Web Development Techdegree Student 9,569 Points

Hi Michelle, the challenge asks you on the third task to make a new variable called display_menu and its value is sundaes joined together with a coma and a space, and then you put that variable inside the .format(). So you missed a step.

Thanks. i didn't notice the space after comma. my bad.