Python Online Compiler
Example: Python program to convert temperature from degree Celsius to Fahrenheit
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program to convert temperature from degree Celsius to Fahrenheit print("Enter the temperature in Celsius::") c, f = float(input()), 0 # c = celsius # f = fahrenheit # celsius to fahrenheit conversion formula f = (float)((c * 9 / 5) + 32) # Output print(c, " Celsius = ", f, " Fahrenheit")
7
Output
Clear
ADVERTISEMENTS