#12 Changing Your Mind


#1



https://www.codecademy.com/en/courses/python-beginner-en-pwmb1/2/3?curriculum_id=4f89dab3d788890003000096

Shows the error invalid syntax(python,line 15)


 
# key - animal_name : value - location 
zoo_animals = { 'Unicorn' : 'Cotton Candy House',
'Sloth' : 'Rainforest Exhibit',
'Bengal Tiger' : 'Jungle House',
'Atlantic Puffin' : 'Arctic Exhibit',
'Rockhopper Penguin' : 'Arctic Exhibit'}
# A dictionary (or list) declaration may break across multiple lines

# Removing the 'Unicorn' entry. (Unicorns are incredibly expensive.)
del zoo_animals['Unicorn']

# Your code here!
del zoo_animals['Sloth']
del zoo_animals['Bengal Tiger']
zoo_animals['Rockhopper Penguin]= 'ice era'
print zoo_animals


#2

@netslayer45148,

You are forgetting to enclose 'Rockhopper Penguin in a pair of single- or double-quotes


#3

oh lol thanks was stucked in it for that silly mistakes for 30 minutes. :3


#4

yeah it happens sometimes!! Silly mistakes