Why does this give me a Key error


#1

print residents[‘Sloth’, ‘Burmese Python’]
Why does this give me a Key error instead of printing these Key values?


FAQ: Learn Python: Python Lists and Dictionaries - This Next Part is Key
#2

Indices never accept a list.