List and Dictionaries 12


Here is my code:

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']

del zoo_animals['Sloth']
del zoo_animals['Bengal Tiger']
zoo_animals['Rockhopper Penguin'] = 'Ice House'

print zoo_animals

It gives me this: Oops, try again. It seems that Atlantic Puffin was added; ? you have typed "Hopper Penguin Rock" Looks like Rockhopper Penguin was added; you have typed "Hopper Penguin Rock"?

I am stuck, please help!


Been a long day but I finally got to testing your code, and passed with no changes.


Your code worked on my sceen


Yeah it worked for me. :slightly_smiling:


Not to beat a dead horse but your code worked for me as well