Question: Part 1 - Simple temperature calculator In the first part your aim is to create a function that converts the input temperature from degrees Fahrenheit
Part Simple temperature calculator
In the first part your aim is to create a function that converts the input temperature from degrees Fahrenheit to degrees Celsius. Create a script called functions.py where you should write your code for Problem
You should do following also criteria for grading:
Create a function called fahrToCelsius in functions.py
The function should have one input parameter called tempFahrenheit
Inside the function, create a variable called convertedTemp to which you should assign the conversion result ie the input Fahrenheit temperature converted to Celsius
The conversion formula from Fahrenheit to Celsius is:
o
Return the converted value from the function back to the user
Comment your code that explains how to use your fahrToCelsius function ie you should write the purpose of the function, parameters, and returned values
Test and use your newly created function by finding the results for following questions:
o What is deg Fahrenheit in Celsius? No need to submit the result, but confirm your result is correct.
o What about deg Fahrenheit in Celsius? No need to submit the result, but confirm your result is correct.
Save your script with the name functions.py If you save to Google Colab temporarysession storage, do not forget to download the file to your own computer.
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
