animals = ["aardvark", "badger", "duck", "emu", "fennec fox"] duck_index = animals.index("duck") # Use index() to find "duck" print duck_index # Your code here! animals.insert(2, "cobra") print animals # Observe what prints after the insert operation
Oops, try again. Make sure to pass duck_index as the first argument in insert().
This exercise was kinda brainless timewaste for me, shorter code is always preferable when output is the same so I couldnt find it for a long time.