Question: In python 3, write the following program: *From a file containing the names, populations, and land areas of all the countries of the world Create
In python 3, write the following program:
*From a file containing the names, populations, and land areas of all the countries of the world
Create a menu-
1. Display the country data that startswith a certain letter
2. Display countries with population < 1 million
3. Display countries with a land area greater than 1,000,000
4. Quit
-Menu should be set up with a loop
-Option 1- should ask for a letter- then show all of the data of the country from the file that starts with that letter
*Formatting should be used to line up the data.
- Option 2- should show all of the data from the file of countries with a population less than 1 million
*Formatting should be used to line up the data.
-Option 3- should show all of the data from the file of countries with a land area greater than 1,000,000
*Columns should be lined up, land area values should be right aligned with a comma and no decimals.
-An error message should display if the user does not choose from options 1-4
-Comment section should be at top of the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
