Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 : Selecting the Data
From this point on in this project, we will only be interested in the data for the year We will now create six new lists,
each of which will contain data for each of the countries.
Create a markdown cell with a level header that reads "Part : Selecting the 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:
Create six empty lists named: country population continent lifeexp
pcgdp and gini
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 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 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 storing the result in a variable
globalpopulation Print this result in the following format:
The global population in 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started