1. Write a python program with a main function to read the file, and produce a list of all countries with a population above 400,000,000. The report will look something like this:
Countries with a population over 400000000.0
2. Modify your program so that the user can enter any positive value and the program will print a list of countries with populations above that value.
Enter population minimum: 500000000
Countries with a population over 500000000.0
3. Modify your program so the user can specify one of the following columns by name (Population, Area, Pop. Density, Coastline). These are the names from the first line of the data file. Only allow the user to enter one of these 4 names.
Enter column name: Area
Enter area minimum: 5000000
Countries with a area over 5000000.0
United States of America 9,631,420
4. Add a section to your program to produce a summary of either total population, total area, or total coastline, for each region in the file. This is where you want to use a dictionary, with the region as the key. This does not require any user input.
Total population by region:
ASIA (EX. NEAR EAST) 3,687,982,236
EASTERN EUROPE 119,914,717
NORTHERN AFRICA 161,407,133
WESTERN EUROPE 396,339,998
SUB-SAHARAN AFRICA 749,437,000
LATIN AMER. & CARIB 561,602,863
C.W. OF IND. STATES 280,081,548
NEAR EAST 191,179,128
NORTHERN AMERICA 331,672,307
I need this assignment done in the following format
"This needs to be more of a dynamic process taking the file I provided opening it and having the program copy each line to a list while stripping off the \n by .strip() and splitting the line by .split(',') that way it will be easier to select the correct data by something like
for aline in data_list:
print aline + aline
this type of code is what you will need for the majority of the assignment. you just have to find the correct column for the area or pop or etc. and check to see if each countries value for that column is greater than the value.(in the first example it is 400000000)"
51 pekerja bebas membida secara purata $132 untuk pekerjaan ini
Hello! I can make you Python script for each of your 4 steps and I will organize the code according to your instruction. This job will take a couple of hours max.
Hi. Dear. Your job posting has caught my attention. I have many experiences in python, tkinter, django. I can complete your project successfully. Thanks.