"""Celsius <-> Fahrenheit Conversion""" # Converts Celsius to Fahrenheit def c_to_f(c): f = 32.0 + float(c) * 9.0/5.0 return f # Converts Fahrenheit to Celsius def f_to_c(f): c = (float(f) - 32.0) * 5.0/9.0 return c # Converts Celsius to Kelvin def c_to_k(c): return c + 273.15 # Converts Kelvin to Celsius def k_to_c(k): return k - 273.15