Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.