Stuck on Maintaining Order (Python)


Error Message: Make sure to pass duck_index as the first argument in insert().

Okay, so according to the excercise, I am supposed to find duck, then put cobra where duck was without removing duck, moving it to spot 3.
It would show up on the console correctly.... but the aforementioned error would pop up.

animals = ["aardvark", "badger", "duck", "emu", "fennec fox"]
duck_index = animals.index("duck")
animals.insert(2, "cobra")
print animals


HI this line

animals.insert(2, "cobra")

since you already saved the index of duck here

duck_index = animals.index("duck")

so where you put 2 you should put duck_index