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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!