Python Program to Convert Celsius To Fahrenheit

To understand this example, you should have the knowledge of the following Python programming topics:


In the program below, we take a temperature in degree Celsius and convert it into degree Fahrenheit. They are related by the formula:

fahrenheit = celsius * 1.8 + 32

Source Code

Output

37.5 degree Celsius is equal to 99.5 degree Fahrenheit

We encourage you to create a Python program to convert Fahrenheit to Celsius on your own using the following formula

celsius = (fahrenheit - 32) / 1.8