You will write three small functions for an air monitor. It reports gases in ppm by volume, and the air quality standard is written in µg/m3.
The idea. At a pressure of 1 atm the molar volume is in L/mol. Then in mg/m3.
Your tasks.
molar_volume(t). It returns the molar volume in L/mol at temperature t in kelvin and 1 atm.to_micrograms(ppm, molar_mass, t). It returns the concentration in µg/m3.over_limit(ppm, molar_mass, t, limit). It returns True when the concentration is above the limit in µg/m3.Run your code once to unlock the worked solution.
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…