''' Fahrenheit to Celsius formula: (°F - 32) x 5/9 = °C or in plain english, First subtract 32, then multiply by 5, then divide by 9. ''' Fah = float(input("Enter a temperature in Fahrenheit: ")) Cel = (Fah - 32) * 5.0/9.0 Cel = round(Cel, 2) #round Cel to 2 decimals print ("Temperature:", Fah, "Fahrenheit = ", Cel, " Celsius") print ('-----------------'); ''' Celsius to Fahrenheit formula: (°C × 9/5) + 32 = °F or in plain English, Multiple by 9, then divide by 5, then add 32. ''' Cel = float(input("Enter a temperature in Celsius: ")) Fah = 9.0/5.0 * Cel + 32 Fah = round(Fah, 2) print ("Temperature:", Cel, "Celsius = ", Fah, " Fahrenheit")