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 trialOmid Ashtari
4,813 Pointsgetting a 'task 1 is no longer passing' message as my 'hint', but I haven't changed my task 1 code
hi, am on task 3 of 3 in Splits and Joins, in Python Basics...getting an error about 'task 1 no longer passing', but I've not changed task 1, and so I'm stuck as I'm not getting a proper hint on how to move forward. (I have an image, but not sure how to attach it here)
5 Answers
Chris Freeman
Treehouse Moderator 68,423 PointsYour last two lines need to be combined to:
menu = "Our available flavors are: {}.".format(", ".join(sundaes))
Omid Ashtari
4,813 PointsThanks Chris, here's the code:
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {}".format(available.split("."))
menu = "Our available flavors are: " + sundaes.join(",")
I realize my last line is not correct, just wondering why the 'hint' does not address the error specifically - thanks for your help
[MOD: added ```python markdown formatting -cf]
Omid Ashtari
4,813 Pointscleaner view:
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {}".format(available.split("."))
menu = "Our available flavors are: " + sundaes.join(",")
Omid Ashtari
4,813 Pointsgotcha, thanks Chris - I misunderstood the directions :(
any clue why the 'task 1' error does not give more specifics? - no worries if not, just curious
Chris Freeman
Treehouse Moderator 68,423 PointsI believe each task has a specific task checker. The checker for Task 2 simply calls the Task 1 checker and looks at the return value. Sometimes, using the "Return to Task 1" button and resubmitting your code can give a more detailed error message. Sometimes not, unfortunately.
Omid Ashtari
4,813 Pointsgotcha, much thanks Chris
Chris Freeman
Treehouse Moderator 68,423 PointsChris Freeman
Treehouse Moderator 68,423 Points"Task 1 no longer passing" usually indicates a newly introduced syntax error that causes all Tasks to fail.
Can you post your code and we can help figure it out?