fork download
  1. # Converts Fahrenheit to Celsius
  2. temp = float(input("Fahrenheit temperature: "))
  3. print (temp)
  4. print("Celsius temperature: ", (temp - 32.0) * 5.0 / 9.0)
Success #stdin #stdout 0.02s 5864KB
stdin
50
stdout
Fahrenheit temperature: 50.0
Celsius temperature:  10.0