# # Sep 16 homework # chap 2 exercise 1, pg 49 # Jim Mahoney's example solution. # print print " -- chap2ex1.py ------------------------------------" print " This is a program to convert Celsius to Fahrenheit." print " So there. (Are we having fun yet?)" print " ---------------------------------------------------" print # ------------ textbook's convert.py ----------------- # convert.py # A program to convert Celsius temps to Fahrenheit # by: Susan Computewell def main(): celsius = input("What is the Celsius temperature? ") fahrenheit = (9.0 / 5.0) * celsius + 32 print "The temperature is", fahrenheit, "degrees Fahrenheit." main()