# # Store and process data related to cities and their populations. # # Create a dictionary that stores information about 4 cities. cities = {"Calgary": 1413800, "Edmonton": 1087172, "Banff": 9656, "High River": 14438} # Add some additional cities to the dictionary cities["Sylvan Lake"] = 16802 cities["Lacombe"] = 14229 cities["Brooks"] = 14623 # Increase the population of Lacombe to account for a birth cities["Lacombe"] = cities["Lacombe"] + 1 # Display all of the cities and their populations for i in cities.keys(): print(cities[i], "people live in", i) # Compute the total population total_pop = 0 for pop in cities.values(): print("Adding", pop, "to the total population...") total_pop = total_pop + pop print("The total population of all of the cities is", total_pop)