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 trialZach Rebstock
4,632 PointsBug on indexes challenge
So, when I add the code for task #1, it passes and moves me to task #2; however, when trying to complete task #2, I get an error saying "Oops! It looks like Task 1 no longer works"
I ran my code in the Python REPL and got exactly what the challenge is asking for, so I am not sure what I'm doing wrong.
var_one = ["a", "b", "c", "d", "e", "t"]
var_two = ["e", "f"]
print(var_one[5])
print(var_two[-2])
var_one = ["a", "b", "c", "d", "e", "t"]
var_two ["e", "f"]
1 Answer
Steven Parker
231,275 PointsAny syntax error invalidates the entire code and causes the re-checks to fail.
In this case, the issue is a missing assignment operator ("=") on the second line.