Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Problem 2 : Making a Dictionary In this part of the assignment the goal is now to take the list of lists or the data

Problem 2: Making a Dictionary In this part of the assignment the goal is now to take the list of lists or the data_list variable contents and begin to construct a
dictionary. For example, first row of the data_list is the keys for each value. For example for the Japan or last line of the file. The dictionary should be
{'Country_Name':'Japan','Life_Exp':81.08 and so on. This will require that numerical data be converted from text into actual data. The goal here is use all that
you have learned to create the dictionary. Hint, the easiest way to to this is two create a dictionary from two list. The desired output should look like:
{'Country_1': {'Country_Name' : 'Congo_Dem_Rep' ,
'Life_Exp': 50.0,
'Birth_Rate': 45.96,
'GNI' : 130.0,
'Development': 'Developing'},
'Country_2': {'Country_Name': 'India',
'Life_Exp': 62.59,
'Birth_Rate' : 26.46,
'GNI' : 440.0,
'Development': 'Developing'},...
You must generate a name, thus you are creating a dictionary of dictionaries. This should use one for loop. Lastly, print the dictionary as the final task for this
problem.
in python
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students explore these related Databases questions

Question

3. SCC Soft Computer

Answered: 3 weeks ago

Question

2. KMPG LLP

Answered: 3 weeks ago

Question

5. Wyeth Pharmaceuticals

Answered: 3 weeks ago