Question: Python Dictionaries are key-value pairs . Given a python dictionary: populations = {'Shanghai': 17.8, 'Istanbul': 13.3, 'Karachi': 13.0, 'Mumbai': 12.5} write code such that the
Python Dictionaries are key-value pairs. Given a python dictionary:
populations = {'Shanghai': 17.8, 'Istanbul': 13.3, 'Karachi': 13.0, 'Mumbai': 12.5} write code such that the console prints out
The population of CITY is NUMBER.
where CITY is a key (e.g. "Shanghai") and NUMBER is the city's population.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
