Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pop method in Python dictionary

famous_museums = {'Washington': 'Smithsonian Institution', 'Paris': 'Le Louvre', 'Athens': 'The Acropolis Museum'}
famous_museums.pop('Athens')
print(famous_museums) # {'Washington': 'Smithsonian Institution', 'Paris': 'Le Louvre'}
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #pop #method #Python #dictionary
ADD COMMENT
Topic
Name
3+6 =