Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 : Displaying Past 2 0 Years of US Data In this section, you will be asked to display the last twenty years of

Part 1: Displaying Past 20 Years of US Data
In this section, you will be asked to display the last twenty years of data for the United States.
Create a markdown cell with a level 1 header that reads "Part 1: Displaying Past 20 Years of US Data".
Write a brief description of what you will be accomplishing in this part of the project. Do not format this text.
Print the population, life expectancy, per capita GDP, and Gini index for the United States for every year since 1999. The
information should be arranged in columns, with a header explaining what the columns mean. Use 4 spaces to separate
the values in adjacent columns. The first few rows of your output should look exactly as shown below, without the
indentation.
Year Country Population LExp pcGDP Gini
-----------------------------------------------------------
1999 United States 27900000076.84470040.5
2000 United States 28200000076.94600040.5
You can accomplish this by looping over the records. With each new record considered, check to see if the year for the
record is greater than or equal to 1999, and if the country associated with the record is equal to the string 'United
States'. If both criteria are true, then print the record as a new row in the output.

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_2

Step: 3

blur-text-image_3

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

b. Where did they come from?

Answered: 1 week ago

Question

c. What were the reasons for their move? Did they come voluntarily?

Answered: 1 week ago

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago