You will write three small functions about the layers of the Earth. All lengths are in km, except the model ball, which is in cm.
The idea. A layer's thickness is the depth of its base less the depth of its top. The share of the Earth's volume between two radii is , with . On a model ball of radius , a real length becomes .
Your tasks.
thickness, return the thickness of a layer from the depths of its top and its base.volume_share, return the share of the Earth's volume between the radii r_out and r_in.on_model, return a real length shown on a model ball of radius ball.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…