Python Program to Convert temperature from Celsius to Fahrenheit

Here we are writing a Python Program to Convert the temperature from Celsius to Fahrenheit.

We ask the user to enter the temperature in Celsius and then we calculate the temperature in Fahrenheit and display that back to user on screen.

The formula that we are using is Temperature in Fahrenheit = ( Temperature in Celsius * 1.8 ) + 32

temperature.py

1 Celsius = float(input("Enter the temp in Celsius: "))
2 
3 Fahrenheit = (Celsius * 1.8) + 32
4 
5 print('%.1f Fahrenheit is: %0.1f Celsius' %(Fahrenheit, Celsius))

Python Program to Convert temperature from Celsius to Fahrenheit video tutorial