You will write three small functions that use a table of air pressures.
The idea. The dictionary pressure gives the air pressure in kPa at some heights in km. At 0 km it is the sea-level pressure.
Your tasks.
share, return the percentage of the sea-level pressure that is left at a height of height km.fall, return how many kPa the pressure drops between two heights, low and high.first_below_half, return the lowest height in the table at which the pressure is less than half of the sea-level pressure.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…