Python Program to convert Fahrenheit to Celsius

Program

# Python Program to convert temperature in fahrenheit to celsius
fahrenheitVal = float(input('Enter a Fahrenheit value you want to convert: '))
# calculate celsius using the formula
# celsius * 1.8 = fahrenheit - 32
celsius = (fahrenheitVal - 32)/1.8
print('%0.1f degree Fahrenheit = %0.1f degree celsius' %(fahrenheitVal,celsius))

Output

$ python3 ConvertFahrenheitToCelsius.py 
Enter a Fahrenheit value you want to convert: 99.5
99.5 degree Fahrenheit = 37.5 degree celsius