How is a definition stored into a dictionary, where 'word' is the key? code example

Example 1: dictionary in python

thisdictionary = {'key':'value','key1':'value1'}
print(thisdictionary['key'])

Example 2: Create a data dictionary of 5 states having state name as key and number python 3

city_population = {"New York City": 8550405, 
                   "Los Angeles": 3971883, 
                   "Toronto": 2731571, 
                   "Chicago": 2720546, 
                   "Houston": 2296224, 
                   "Montreal": 1704694, 
                   "Calgary": 1239220, 
                   "Vancouver": 631486, 
                   "Boston": 667137}
city_population["New York City"]