7-14


#1

animals = ["aardvark", "badger", "duck", "emu", "fennec fox"]
duck_index = animals.index("duck") # Use index() to find "duck"

animals.insert(4, "cobra")

print animals # Observe what prints after the insert operation

what do i do wrong ?


#2

Hey Anika,

4 is the wrong place to insert "cobra" ("duck" is at index 2), and it's best to avoid hard-coding stuff. Try animals.insert(duck_index, "cobra") instead :)