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
SEBASTIAN BUFFO
2,822 PointsError message"Task 1 no longer passing" in Step 3 in Lists Redux Quiz
I am trying to move on with step 3 in the List Redux quiz where I need to turn the_list into only numbers from 1,20. When I attempt to run the last line, I get the error message, Task 1 is no longer passing.
Any help would be greatly appreciated! Thanks :)
the_list.insert(0, the_list.pop(3))
the_list.remove('a')
the_list.remove(False)
the_list.remove([1, 2, 3])
the_list.extend(range,(4,21))
1 Answer
Kenneth Love
Treehouse Guest TeacherWhen I run your code, I get the error "TypeError: extend() takes exactly one argument (2 given)".
a) Does that help you see how to solve this? b) Do you not get that error? If you're not, I'll see about updating the challenge to make sure you do.
SEBASTIAN BUFFO
2,822 PointsSEBASTIAN BUFFO
2,822 PointsHey Kenneth,
Thanks for responding. It turns out I had an extra comma in the last line. If I run:
the_list.extend(range(4,21))
Everything runs fine!