You will write three small functions about days. Times are in seconds or hours, as the comments say.
The idea. A tropical year of solar days holds sidereal days, so the sidereal day is seconds. A star crosses the meridian earlier by the gap between the two days each night. On another world, when the spin and the orbit go the same way.
Your tasks.
sidereal_day, return the sidereal day in seconds for a year of year solar days.crossing_time, return the time in hours when a star crosses the meridian after some nights, given its crossing time on night . Keep the answer between and .solar_day, return the solar day in hours from the spin period and the year, both in hours.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…