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