You will write three functions about the earthquakes on a plate that sinks under a continent. Distances and depths are in km, angles in degrees.
The idea. A plate sinking at an angle is at a depth at a distance inland from the trench. Turned round, . Earthquakes are shallow down to , intermediate down to , and deep below that.
Your tasks.
depth_at, return the depth of the plate at a distance inland.angle_of, return the angle of the plate from one earthquake's distance and depth.kind, return "shallow", "intermediate" or "deep".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…