Question: * images have relevant csv file data * Write a Python code ( beginner level ) that for each city calculates the following, with the
images have relevant csv file data
Write a Python code beginner level that for each city calculates the following, with the data coming from an imported cvs file:
The number of people in the city.
The height and name of the SHORTEST person that is GREATER than the average height of all people in the city. basically find who is right above average
The height and name of the SECOND SHORTEST person that is GREATER than the average height of all people in the city.
Output the results in a neat, evenly spaced tabular form.
Produce a topdown plan as a set of steps that implement items and above. Write these steps as comments at the beginning of your code.
Each row in your output must display the city name, the city's population, and the average height of all of the people in the city to decimal places, BEFORE the names and heights of the people you calculated statistics for.
You must NOT assume that the set of cities is restricted to the cities contained in this particular data file. Write your solution to handle any set of cities that might be present in the data.
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
