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 trialTony DiMaggio
1,358 PointsThis is a ***** checkpoint with extremely vague insight to whats wrong on a lesson that have functions inside of func
This is a ****** checkpoint with extremely vague insight to whats wrong on a lesson that have functions inside of function
**** poor job treehouse
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {}" + (";"join.(available))
Jason Anders
Treehouse Moderator 145,860 PointsQuestion has been edited for appropriate language to be used in the Community Forum. Regardless of any frustration, this forum is for all students to employ. If you ask clear questions, other students will be better able to help you to understand the challenges. However, you will need to watch the language and tone used in the forum. Please refer to Treehouse's Terms and Conditions
I'm glad Nathan was able to assist you, and a solution has been achieved.
Jason
Treehouse Moderator
2 Answers
Nathan Tallack
22,160 PointsI will admit, this is one of the more difficult challenges at this learning level. I remember struggling with it and in the end feeling that it was a little too complex for the lesson being taught.
The takeaways could be delivered in a more intuative manner.
The first task seemed simple enough. You nailed that one. As did the second. But that last one is a monster.
What they are trying to get us to do here is learn to use the format and join methods. But they do a horrible job of explaining to us what it is they want to do. Perhaps it would have been better split into two extra tasks.
You almost had it!
What you want to do is use the .format method to replace the braces in your string with your joined up list again. And the hard part here is that join method. You feed it in a string literal of what you want to put between each list item and then call the join method on that string passing in the list you made from your split. I mean, even explaining it is insanely un-intuative! I don't know what they were thinking.
That line would look like this.
menu = "Our available flavors are: {}.".format(", ".join(sundaes))
Trust me, these kind of horrible examples of challenges are few and far between here. I've done most all of the Python courses on here (excepting Django) and they are wonderful for the most part.
And for the horrors, your peers are here to help you out! :)
Tony DiMaggio
1,358 PointsI admit I asked this question with pure rage and anger so I apologize.
Nathan thank you for your input. What enraged me about this is that the lesson check is based on the .format function which none of the videos have gone over yet!!!
Jason Anders
Treehouse Moderator 145,860 PointsHey Tony,
.format
was covered prior to this challenge. It is in the video entitled Strings and starts at about the 6:30min mark. This video is the 3rd one back from this particular challenge you are on.
Alex Trost
6,270 PointsAlex Trost
6,270 PointsUh, do you have a question?