.pop() and .insert()
I used .pop and .insert to remove "1" from the list and put the "1" at the front of the list using .insert, but i'm still getting errors
messy_list = ["a", 2, 3, 1, False, [1, 2, 3]] messy_list.pop(1) messy_list.insert(0,1) # Your code goes below here
absolutely; Thanks Jason
Jason AndersTreehouse Moderator 144,972 Points
You're on the right track, but the instructions say to remove the [integer] 1 from index 3. You are using pop(), which takes an index as the parameter. Check your code... you're passing in index one into the method instead of index 3. The rest is good.
Nice work! :)