You will analyse a chain of hotspot volcanoes: the speed of the plate between neighbours, the average speed, and the age of a volcano that has not been dated yet.
The idea. For two neighbouring volcanoes, the speed is the gap in distance divided by the gap in age, in km per million years. Divide by for cm a year. The average is the distance of the oldest volcano divided by its age.
Your tasks.
step_speeds, return a list of the speeds between neighbours, in cm a year.average_speed, return the average speed over the whole chain, in cm a year.age_of, return the age in million years of a volcano at a given distance, for a speed in cm a year.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…