Question: NOTE : Is learning Python programming (currently on chapter 7) with the following textbook: Book Starting Out With Python 3rd Edition by Gaddis

NOTE: Is learning "Python programming" (currently on chapter 7) with the following textbook:

Book "Starting Out With Python" 3rd Edition by GaddisNOTE: Is learning "Python programming" (currently on chapter 7) with the following

2. Use the file named USPopulation.txt The file contains the midyear population of the United States, in thousands, during the years 1950 through 1990. The first line in the file contains the population for 1950, the second line contains the population for 1951, and so forth. Write a program that reads the file's contents into a list (make your life easier and use the function that does this!). The program should display the following data: The year with the greatest increase in population during the time period and what the increase was The year with the smallest increase in population during the time period and what the increase was The average annual change in population during the time period A131 Programming Assignment ~/workspace/HW/ $ python number02.py 1954 had the largest increase, which was 3185 1966 had the smallest increase, which was 1881 The average change was 2444

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!