Question: This page contains 2 0 1 7 census information when the total population of the U . S . was 3 2 5 , 7
This page contains census information when the total population of the US was
The file nestedlists.py contains information about the most populous states.
Add a pure function to nestedlists.py that calculates and returns the total population of the information passed into it Print this value after the function returns it
Modify the program to also print the percentage of the US population that lives in the most populated states.
Modify the populations variable to include information about whether each state is landlocked. Consider a landlocked state to be one that does not touch the Atlantic Ocean, the Pacific Ocean or the Gulf of Mexico.
Modify the program to also calculate and print the percentage of the population in the most populated states that live in a landlocked state.
Time permitting, make other interesting enhancements.
nested lists.py:
populations California
Texas
Florida
New York",
Pennsylvania
Illinois
Ohio
Georgia
North Carolina",
Michigan
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
