Author: Anonymous Language: python
Description: No description Timestamp: 2011-07-21 17:59:07 -0400
View raw paste Reply
  1. user = input('Please enter a number to convert: ')
  2. pick = input('Choose Celsius with the number 1 or Fahrenheit with the number 2: ')
  3. def Celsius(user):
  4.         Tc=(5/9)*(user-32)
  5.         return(Tc)
  6. def Fahreneit(user):
  7.         Tf=(9/5)*user+32
  8.         return(Tf)
  9. if '1' in pick:
  10.         print(Celsius)
  11. if '2' in pick:
  12.         print(Fahreneit)
View raw paste Reply