Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def celcius_to_kelvin(C):
- return C + 273.15
- def fahrenheit_to_kelvin(F):
- return F - 32 / 1.8 + 273.15
- def kelvin_to_fahrenheit(K):
- return 1.8 * (K - 273.15) + 32
- def kelvin_to_celcius(K):
- return K - 273.15
- def celcius_to_fahrenheit(C):
- return kelvin_to_fahrenheit(celcius_to_kelvin(C))
- def fahrenheit_to_celcius(F):
- return kelvin_to_celcius(fahrenheit_to_kelvin(F))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement