a guest Aug 12th, 2017 54 Never
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
- 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!"
RAW Paste Data