Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Fahrenheit to Celsius
- # enter the value
- fahr = raw_input("Enter the value in Fahrenheit, please:")
- # convert the fahr string to float
- fahr = float(fahr)
- # calculate the cel and print it
- cel = (fahr - 32) * 5.0 / 9.0
- print str(fahr) + " -> " + str(cel)
Advertisement
Add Comment
Please, Sign In to add comment