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 Python Basics (2015) Python Data Types Use .split() and .join()

Sachin Modgill
Sachin Modgill
850 Points

any idea why task one is not passing when i didn't change anything in that line of code (which is line 2)

not sure why i am getting this problem. Thanks for your help

banana.py
available = "banana split;hot fudge;cherry;malted;black and white"
sundaes = available.split(";")
menu = "Our available flavors are: {}.".
Samuel Focht
Samuel Focht
4,321 Points

I have had that problem a lot. I Doesn't like that there is a change of some of the code from task one. Press the restart button and that clears it up.

1 Answer

andren
andren
28,558 Points

The "Oops! It looks like Task 1 is no longer passing." message can be quite misleading. In order to ensure that people don't remove or modify code from previous tasks, the code checker for these challenges will run your code though all of the the task requirements to check that is still passes all of them whenever you try to pass a task.

The problem is that if your code has some error that results in the code checker crashing when it tries to verify that your code still passes the previous task requirements, then it will inform you that your code no longer passes task 1, even if the code that caused it to crash was added in a later task. This is a basically a bug in the current version of the code checker.

Anyway as for the actual issue with your code, you have a dot at the end of your last line that should not be there, if you remove it your code will work again.