Question: The variable below stores the daily average temperature in Fahrenheit for the past 7 days. Write a program to convert all the temperatures in this

The variable below stores the daily average temperature in Fahrenheit for the past 7 days. Write a program to convert all the temperatures in this list to Celsius. Specifically, you will

define a function, temperature_f2c(t), to convert any input temperature in Fahrenheit to Celsius.

The math formula of conversion is C=(F - 32)/1.8

convert temperature with the function

create a new list and use for-loop to store the converted temperatures.

Starter script

def temperature_f2c(t): # write your code for the function week_temperature = [38.24, 35.1, 28.16, 19.25, 24.28, 22.94, 22.96] # write your main program here 

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!