Temperature Converter

Convert values between units of kelvin, Celsius, and Fahrenheit.

This program show the uses of functions.

There is a function to concert between kelvin Celsius and Fahrenheit. The program will ask the user how they want to convert there temperature value. It will then use the correct sequence of functions and return the converted temperature.


> python


> This program converts degrees Celsius and Fahrenheit.


> Enter the current units followed by the ones desired then the current value

> For Example to convert 32 deg Celsius to kelvin input 'C K 32'

> c k 0

> 0.0 Celsius is 273.1 kelvin


> c f 0

> 0.0 Celsius is 32.0 Fahrenheit