Take a careful look at the instructions and be sure to set the "Rockhopper Penguin"’s value to anything but its current value of "Arctic Exhibit".
If you think you have done this and it still doesn’t work, check that you’re properly spelling the penguin’s key name and the list name, and use brackets [] to access a dictionary key value.
you can delete serveral things at once, but you can only do a single key lookup (to get the associated value). Knowing this, you can transform your code to:
del zoo_animals['Sloth'], zoo_animals['Bengal Tiger']
Penguins live almost entirely in the Southern Hemisphere and are common to Antarctica, Argentina, Australia, Chile, New Zealand and South Africa.
So, is incorrect to put them in the “Arctic Exhibit”
And if we did it inversely ie we make the days as the values of the dictionary, and the number as the keys. In that case, it’s when the user of application enters numbers ?
Le jeu. 14 févr. 2019 à 08:47, Stetim94 via Codecademy Forums [email protected] a écrit :
Also, make sure that the location is in quotation marks! The last exercise had values as floats or integers, so some people might forget them since they were so used to only using strings for the keys and not using them for values.