7. Maintaining Order


I can't get this to be right. Someone see my prob?

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

Your code here!

animals.insert(duck_index, "Cobra")

print animals # Observe what prints after the insert operation


If you're using 3.3, print (something_list)
Are you taking this directly from the online codecademy site or trying it on a python interpreter ?


this is on the online codecademy side, and thank you kind sir for answering this thread!



This is a link you may find useful in furthering your studies. Codecademy's interface can be frustrating at the best of times for a learner.


I figured it out.... really... you have to write cobra with small letters... I am so sry I wasted your time.. :disappointed_relieved: