► Python Program to Convert Fahrenheit To Celsius
Steps followed:
1. Take temperature input from user in Fahrenheit
2. use below formula to convert Fahrenheit To Celsius
Temp in Celsius = (Temp in Fahrenheit - 32) * 5/9
3. print the result
#Python Program to Convert Fahrenheit To Celsius
# Take temperature input from user in Fahrenheit
temp_in_fahrenheit = float(input("provide temperature input in Fahrenheit: "))
# convert Fahrenheit To Celsius
temp_in_celsius = (temp_in_fahrenheit - 32) * 5/9
#printing the result
print('%0.2f degree fahrenheit is equal to %0.2f degree celsius' %(temp_in_fahrenheit,temp_in_celsius))
provide temperature input in Celsius: 104
104.00 degree fahrenheit is equal to 40.00 degree celsius
provide temperature input in Celsius: 86
86.00 degree fahrenheit is equal to 30.00 degree celsius
provide temperature input in Celsius: 0
0.00 degree fahrenheit is equal to -17.78 degree celsius