You will write three functions for a simple tide planner.
The idea. In a simple model, the spring range is times the range the Moon alone would give. The neap range is times it. Here is the Sun's share. Spring tides come every days, starting at a new Moon.
Your tasks.
spring_range, return the spring range for a Moon-only range and a share s.neap_range, return the neap range.spring_days, return a list of the first n spring-tide days, counted from a new Moon on day start.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…