12.Changing your mind


#1

I'm Stuck on 'Changing your mind' can someone help?

zoo_animals = { 'Unicorn' : 'Cotton Candy House',
'Sloth' : 'Rainforest Exhibit',
'Bengal Tiger' : 'Jungle House',
'Atlantic Puffin' : 'Arctic Exhibit',
'Rockhopper Penguin' : 'Arctic Exhibit'}

del zoo_animals['Unicorn']

# Your code here!
del zoo_animals['Sloth''Bengal Tiger']

    zoo_animals['Rockhopper Penguin'] = 'Jungle House'          

print zoo_animals

I don't know whats wrong but it said something about line 2 there is an unexpected indentation please help


#2

Hi, @pinestwin2 ,

This line should not be indented ...

zoo_animals['Rockhopper Penguin'] = 'Jungle House'

This line also needs to be revised (See next post by @bayoishola20) ...

del zoo_animals['Sloth''Bengal Tiger']

#3

You should delete each key separately here:


#4

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