You will write three small functions about mountains that are pushed up and worn down.
The idea. Uplift and erosion are given in mm a year. 1 mm a year for a million years is 1 km, so the change in height in km is (uplift − erosion) × time in millions of years.
Your tasks.
net_rise, return the net rise in mm a year.height_after, return the change in height in km after million_years million years.time_to, return how many million years the range needs to rise km 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…