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 (Retired) Lists Redux Manipulating Lists

Venkata Bhaskar reddy Guda
Venkata Bhaskar reddy Guda
275 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

lists.py
the_list = ["a", 2, 3, 1, False, [1, 2, 3]]

# Your code goes below here
the_list(0,the_list.pop(3))

1 Answer

Elad Ohana
Elad Ohana
24,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.