Question: Part 2 : Selecting the 2 0 1 8 Data From this point on in this project, we will only be interested in the data

Part 2: Selecting the 2018 Data
From this point on in this project, we will only be interested in the data for the year 2018. We will now create six new lists,
each of which will contain 2018 data for each of the 184 countries.
Create a markdown cell with a level 1 header that reads "Part 2: Selecting the 2018 Data".
Write a brief description of what you will be accomplishing in this part of the project. Do not format this text.
Create a code cell and perform the following tasks:
1. Create six empty lists named: country_2018, population_2018, continent_2018, life_exp_2018,
pcgdp_2018, and gini_2018.
2. Populate the new lists by looping over the original lists. At each iteration of the loop, check to see if the
associated record is from 2018. It is is, store each piece of the record in one of the six new lists, as appopriate.
When you have created the lists above, you might wish to check there length to confirm that each contains 184 elements.
Do not include this code in the final version of your notebook, however.
Use the sum() function to calculate the total population of the world in 2018, storing the result in a variable
global_population_2018. Print this result in the following format:
The global population in 2018 was xxxx.
I would suggest performing a Google search to check to see if the value you calculate is reasonable. You should expect the
value you calculated to be exactly what you find on Google since both will just be estimates, but the two numbers should
be relatively close to each other.

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!