You will write three small functions: one changes degrees celsius to kelvin, one changes kelvin back to celsius, and one says whether water is a solid, a liquid or a gas at a temperature in celsius. The program then prints a table of temperatures.
The idea. , and . At normal pressure water is ice below , liquid from up to , and steam from .
Your tasks.
to_kelvin(celsius) give the temperature in kelvin.to_celsius(kelvin) give the temperature in degrees celsius.state_of_water(celsius) give "solid", "liquid" or "gas".Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…