Question: Write a function max_c1ty_temp(csv_f1lename, c1ty) which analyses temperatures recorded in a CSV file, and returns the maximum temperature recorded for the named city. The first

Write a function max_c1ty_temp(csv_f1lename, c1ty) which analyses temperatures recorded in a CSV file, and returns the maximum temperature recorded for the named city. The first column of the CSV file will be the city name. The rest of the columns will be months of the year. The first row of the CSV file will provide the column headings. Here is an example file fragment (the actual file has all of the months of the year) max temp city/month,Jan, Feb,Mar,Apr Melbourne,41.2,35.5,37.4,29.3 Br1sbane,31.3,40.2,37.9,29 Darwin, 34,34, 33.2,34.5 Here is an example of how max_city_temp should work: print(max_c1ty_temp('max_temp.csv', Br1sbane)) 40.2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
