Python Program to Convert Celsius To Fahrenheit


In [1]:
celsius = float(input("Please enter temperature in celsius : "))

fahrenheit = (celsius * 1.8) + 32

print("Temperature in fahrenheit =", fahrenheit)
Please enter temperature in celsius : 41
Temperature in fahrenheit = 105.8

Formula used :

fahrenheit = (celsius * 1.8) + 32

In this program, the user is asked to enter the temperature in Celsius, and then it is converted to Fahrenheit and printed it.