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 trial

Python

Omid Ashtari
Omid Ashtari
4,813 Points

getting 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)

Chris Freeman
Chris 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?

5 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

Your last two lines need to be combined to:

menu = "Our available flavors are: {}.".format(", ".join(sundaes))
Omid Ashtari
Omid Ashtari
4,813 Points

Thanks 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
Omid Ashtari
4,813 Points

cleaner 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
Omid Ashtari
4,813 Points

gotcha, 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
Chris Freeman
Treehouse Moderator 68,423 Points

I 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
Omid Ashtari
4,813 Points

gotcha, much thanks Chris