Question: Create a function from your temperature conversion code - Create a function that converts Fahrenheit to Celsius. You may adapt your code for the assignment

Create a function from your temperature conversion code -

Create a function that converts Fahrenheit to Celsius.  You may adapt your code for the assignment "Convert Fahrenheit to Celsius"

Your function input should be a number expressing Fahrenheit degrees to convert.

Your function return value should be a a value expressing the input temperature after converting it to Celsius.

Run the function 5 times with different input values and output its return values to the console.


Below is my adopted "Convert Fahrenheit to Celsius" code that will be used for this practice assignment ^ above:

# AUTHOR: Stanley Williams
# DATE: September 5, 2023
#PURPOSE: Fulfill the assignment "Convert Fahrenheit to Celcius"

F=int(input("Input a temperature in Fahrenheit:"))
C=(F-32)*5/9
print("Temperature in celcius is",C)


Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

mainpy 1 def fahrenheittocelsiusF 123456789 C F 32 59 return C ... View full answer

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 Programming Questions!