You will write three small functions: the temperature up a mountain, the height of the freezing level, and the strength of sunlight at a latitude.
The idea. The temperature at height is , with a lapse rate of . The freezing level is at . At noon on an equinox the strength of sunlight on flat ground, as a percentage of its strength at the equator, is .
Your tasks.
temp_at, return the temperature at a height h in km above a coast at t0.freezing_level, return the height in km at which the air reaches .sun_percent, return , with the latitude lat in degrees.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…