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 trialMohammed Mashghan
Python Web Development Techdegree Student 253 PointsChallenge Task 3 of 3... I failed to answer it,
Please send me the answer, I failed to answer it
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(';')
menu = "Our available flavors are: {}.".format(', '.join(sundaes))
display_menu = ( " , " .join (sundeas))
menu = "Our available flavors are: {}.".format( " , " .join (display_menu) )
1 Answer
Steven Parker
231,269 PointsHere's a few hints:
- you have 3 joins, but there only needs to be one
- you have 2 formats, but you only need one
- you have "sundeas" instead of "sundaes"
- the join string should only have one space, after the comma
- a live system ignores spaces added to dot notation, but the challenge doesn't like them
Mohammed Mashghan
Python Web Development Techdegree Student 253 PointsMohammed Mashghan
Python Web Development Techdegree Student 253 Pointsavailable = "banana split;hot fudge;cherry;malted;black and white" sundaes=available.split(';') menu = "Our available flavors are: {}.".format (', '.join(sundaes))
I answered correctly 1st and 2nd Questions I can not imagine why 3rd tasks not easy like 1 and 2 and how to write it. Please answer it for me