"Oops, try again. The new item should have been inserted at the index previously occupied by "duck"." is the error message that pops up when I submit my code.
I'm positive I have followed the correct instructions however it says I haven't substituted cobra. Can someone please show me where I have made a mistake, Thank you for Reviewing my code.
animals = ["aardvark", "badger", "duck", "emu", "fennec fox"] duck_index = animals.index("duck") # Use index() to find "duck" # Your code here! animals.insert(3, "cobra") print animals # Observe what prints after the insert operation