Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

What is the use of bootstrap program?

Answered: 1 week ago

Question

What is a process and process table?

Answered: 1 week ago

Question

What is Industrial Economics and Theory of Firm?

Answered: 1 week ago