Python Program to Convert Fahrenheit To Celsius

Python Program to Convert Fahrenheit To Celsius


#Declare variable fahrenheit and assign value to 212.0

fahrenheit = 212.0

# calculate celsius using below formula

celsius = (fahrenheit - 32) / 1.8;
print('%0.1f degree Fahrenheit is equal to %0.1f degree Celsuis' %(fahrenheit,celsius))

 

Output:-

 


 

Leave a Reply

Your email address will not be published. Required fields are marked *