Consider a file in which every line is of the format City, Country. Read the file, record the information in a dictionary, and report the number of cities in each country. For example, if the file contains
London, UKChicago, USDetroit, US
The output will be:
UK : 1US : 2
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.