Question: In this program you will start by declaring an empty dictionary named population _ dict. Then you will use a while - loop to prompt
In this program you will start by declaring an empty dictionary named populationdict. Then you will use a whileloop to prompt a user for a series of cities and their populations, storing the input in populationdict. After this you will prompt the user to decide what is the maximum population for a city to be considers a small down. Finally, you will open a file called populationdata.txt where you will write the results.
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
