Question: Write a python program that reads data from text file into a dictionary whose keys are country names and whose values are per capita incomes.
Write a python program that reads data from text file into a dictionary whose keys are country names and whose values are per capita incomes. Program asks the country name and prints per capita income of that country. Use the file rawdata.txt, https://files.fm/u/xq893tpt Example output should look like, Enter the country name (or type Q to quit): United States The per capita income is $48300.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
