You will write three small functions about a tsunami.
The idea. In water of depth d metres, a tsunami runs at the square root of 9.8 times d, in m/s. To change m/s into km/h, multiply by 3.6.
Your tasks.
speed, return the speed in m/s for a depth in m. Use ** 0.5 for the square root.to_kmh, change a speed in m/s into km/h.arrival_minutes, return the minutes that a tsunami needs to cover distance km over water of depth depth m. Use your own functions.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…