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 trialKristine Saryan
1,386 PointsWhy does it keep saying Task 1 is no longer passing when I try to do task 2. I haven't changed anything
I keep getting the same error even though it said task 1 was done correctly
file_object= open ("basics.txt")
data=read (file_object)
1 Answer
Steven Parker
231,248 PointsThe "task 1" message might be a bit misleading.
The challenge always re-checks task 1, so if you have introduced a syntax error anywhere in the code, it will think there's trouble with task 1.
Your main issue is in using the read method. This method should be applied to the file object, but instead you called it like a function and passed the object to it as an argument.