Python Program to Convert Celsius To Fahrenheit

Python Program to Convert Celsius To Fahrenheit: In this program, you’ll learn to convert Celsius to Fahrenheit and display it.

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

celsius * 1.8 = Fahrenheit – 32

Python Program to Convert Celsius To Fahrenheit

Source Code

# Python Program to convert temperature in celsius to fahrenheit

# change this value for a different result
celsius = 37.5

# calculate fahrenheit
fahrenheit = (celsius * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))

Output of Program