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 Collections challenge task 2

I am confused by this question: " Use .remove() and/or del to remove the string, boolean, and list members of the_list."

the_list is a list with some numbers, a string, a boolean, and then it's last item is a small list that also contains a few numbers. It the question above asking me to remove this small list from the_list, or is it asking me to remove all of the list members from the_list?

At any rate, I cannot seem to accomplish the task and could use to see the correct code. Thanks!

2 Answers

Hi, yes the question is asking you to remove information, by using .remove() =) does that help?

I have figured it out. I have learned to use workspaces to write this code first, so that I can use print statements to figure out what I am doing wrong. The problem I ran into with this exercise is that the program kept telling me "OOps, it looks like Task 1 is no longer passing" when that was not the problem at all. Thanks!