# File: temp.py # convert a Fahrenheit temperature to Centigrade # # Matt Bishop, ECS 10, Spring 2014 # # ask for, and get, the temperature in degrees F ftemp = float(input("Enter degrees in Fahrenheit: ")) # convert to Centigrade ctemp = 5 / 9 * (ftemp - 32) # print out the result print(ftemp, "degrees Fahrenheit is", "%.2f" % ctemp, "degrees centigrade")