Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started