Stuck on Maintaining Order (Python)


#1



https://www.codecademy.com/courses/python-beginner-en-pwmb1/1/4?curriculum_id=4f89dab3d788890003000096#

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


#2

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


#5