Question: Hello again, writing a script in Python. I have a file from which I read 2 columns (year & temperature) and I have calculate the

Hello again, writing a script in Python.

I have a file from which I read 2 columns (year & temperature) and I have calculate the average of the temperature column:

list_of_temp.append(temp)

average=numpy.average(list_of_temp)

Now I want to define a function

def lower_temperature(year,temp)

that find the year when the temperature have the greatest deviation from the average and:

return (final_year, greater_deviation_temp)

and then print them on the screen after the execution

Please some help with the code..

Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!