In [1]:
celsius = float(input("Please enter temperature in celsius : "))
fahrenheit = (celsius * 1.8) + 32
print("Temperature in fahrenheit =", fahrenheit)
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.