You will write three small functions about the layers of the Earth under the land.
The idea. The crust goes down to 35 km, the mantle to 2900 km and the outer core to 5150 km. Below that is the inner core, down to the centre at 6371 km.
Your tasks.
layer_at, return the name of the layer at a depth of depth km: "crust", "mantle", "outer core" or "inner core".thickness, return the thickness of a layer that runs from top km to bottom km.share, return the percentage of the way to the centre for a depth of depth km.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…