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