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 trialAlbrino Fernando
1,577 PointsNeed help on .split & .join challenge
I’m Stuck On This Problem and I Don’t Know What I Did Wrong! I thoughtI did It Exactly Right!
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {}."
display_menu = menu.sundaes.join(", ")
menu = display_menu
2 Answers
Josue Ipina
19,212 PointsYou should reassign menu to the new formatted menu:
menu = menu.format(display_menu)
james south
Front End Web Development Techdegree Graduate 33,271 Pointsyou are using join backwards. it's called on the delimiter with the collection as the argument. so ", ".join(list)
Albrino Fernando
1,577 PointsI tried That But Im Still Getting Errors, New Code:
available = "banana split;hot fudge;cherry;malted;black and white" sundaes = available.split(";") menu = "Our available flavors are: {}." display_menu = ", ".join(sundaes) menu = display_menu
Albrino Fernando
1,577 PointsAlbrino Fernando
1,577 PointsThank You For The Help! It Works Now!