python-tutorialsmade

Python program to convert Fahrenheit to Celsius

 

In this lesson you are going to learn how to convert Fahrenheit to Celsius by using Python script, I’m following Python 3 syntax to write programs which actually works in both Python 2 and Python 3.

Formula for finding the Celsius:

celsius = (fahrenheit – 32)*5/9

 

Program is very simple only 4 lines of script:

Output:

Enter Fahrenheit: 100
Celsius: 37.7779

The above program is a console program, the same script also can be written as a Python Web script.

Here is the Python web application script to convert Fahrenheit to Celsius:

You can also see the demo of the python web script here:

demo

 

 

Related Posts

Leave a Reply