Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started