Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Your code here...
- def ctof(celcius):
- return celcius * 1.8 + 32
- def ftoc(fahrenheit):
- return (fahrenheit -32) / 1.8
- try:
- print ctof(float(input("Enter a number to convert to fahrenheit from celcius: ")))
- print ftoc(float(input("Enter a number to convert to celcius from fahrenheit: ")))
- except ValueError:
- print "Sorry! You need to enter a NUMBER!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement