Stuck at 10


#1

residents = {'Puffin' : 104, 'Sloth' : 105, 'Burmese Python' : 106}

print residents['Puffin'] # Prints Puffin's room number

Your code here!

print residents ['Sloth' , 'Burmese Python']

this is my code
but this error came out
Traceback (most recent call last):
File "python", line 7, in
KeyError: ('Sloth', 'Burmese Python')


#2

@byteninja98701,
Defining

residents = {'Puffin' : 104, 'Sloth' : 105, 'Burmese Python' : 106}

print residents['Puffin']  # Here you print the =associated Value= of the 'Puffin'-key
print residents['Sloth']
print residents['Burmese Python']

#3

passed, thx for your help