You will write three small functions about a fixed mass of gas.
The idea. The kelvin temperature is . No temperature can be below absolute zero, . At a constant temperature, .
Your tasks.
to_kelvin, return the temperature in kelvin for a Celsius temperature celsius. If the result would be below 0 K, return None.to_celsius, return the temperature in degrees Celsius for a kelvin temperature kelvin.new_pressure, return the new pressure for a starting pressure p1, a starting volume v1 and a new volume v2.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…