Question: PYTHON 3: You are given two data inputs: the first list below is a collection of G7 country names, and the second list below is
PYTHON 3: You are given two data inputs: the first list below is a collection of G7 country names, and the second list below is a collection of G7 country MCAP-GDP ratio, expressed in %. The task asks you to create a new list named 'comb_G7_countries' that combines the two data inputs in to one list: name_G7_countries = ['Canada', 'France', 'Germany', 'Italy', 'Japan', 'UK', 'USA'] mcap_gdp_G7_countries = ['118.6%', '90.33%', '56.2%', '36.0%', '198.47%', '98.96%', '147.9%']
Desired Result:
comb_G7_countries = [['Canada', '118.6%'], ['France', '90.33%'], ['Germany', '56.2%'], ['Italy', '36.0%'], ['Japan', '198.47%'], ['UK', '98.96%'], ['USA', '147.9%']]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
