Question: I only really need help with Q2 and Q3. Problem 2 Below is data from the GDP of several countries given in USD(Trillion). The elements

 I only really need help with Q2 and Q3. Problem 2

I only really need help with Q2 and Q3.

Problem 2 Below is data from the GDP of several countries given in USD(Trillion). The elements of each countries list are in order from 2015 to 2019. Note: 2015 is at index [1] of a country list In [ ]: country_gdp = [["Germany", 3.356,3.467,3.682,3.963,3.861], ["Spain", 1.195,1.232,1.312,1.422,1.393], ["United States", 17.527,18.224,18.715, 19.512,2.8580], [ "Russia", 1.363,1.276,1.574,1.669,1.699), ["China", 11.061,11.233,12.310,13.894, 14.342]] Q1 Print the total and the average sales in Spain Expected Output Total: 5.359 Average: 1.0718 In [ ]: Total Average - 0 N. Spain - country_gdp[1] for i in Spain: if N

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!