Question: Whats the right code of this problem 1. You are given the the data dictionary below. Notice that the gdp data are stored as strings.
Whats the right code of this problem
1. You are given the the data dictionary below. Notice that the gdp data are stored as strings. Fix data by replacing the strings with the approriate floats and then print the dict. You might try using a loop or a list comprehension. : data 'year [1998, 2eee, 2818], 'gdp:'8.95, 12.56, '14.78'] print (datal'gdp']) # the gdp data are strings (how can you teu?)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
