Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Venkata Bhaskar reddy Guda275 Points
Move the 1 to position 0. You can do this in one step with .pop() and .insert().
the_list = ["a", 2, 3, 1, False, [1, 2, 3]] the_list(0,the_list.pop(3)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'list' object is not callable
pls help me
the_list = ["a", 2, 3, 1, False, [1, 2, 3]] # Your code goes below here the_list(0,the_list.pop(3))
Elad Ohana24,456 Points
You need to use the '.insert()' method on your list before the first parentheses. Otherwise, the program is trying to use your list as a callable item such as a function.