Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,166 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,166 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,166 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