Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, November 28, 2012

Codecademy: "Maintaining Order"


#sample solution


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

# Your code here
animals.insert(duck_index,"cobra")
print animals # Observe what prints after the insert operation

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts