Duck Cobra Index


Oops, try again. It looks like "cobra" is not at the correct location (index 4).

animals = ["aardvark", "badger", "duck", "emu", "fennec fox"]
duck_index = animals.index("duck")
print animals

How could the index for duck be the 4 in the error message?

Replace this line with your code.


A typo just there...cobra not corbra


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.