You will write three functions about the turning sky. Times are in hours or minutes, as each task says.
The idea. In a year of solar days the Earth turns times relative to the stars, so the sidereal day is hours. Each day a star rises earlier by the difference between hours and the sidereal day. A star trail grows by an hour.
Your tasks.
sidereal_hours, return the sidereal day in hours for a year of n days.earlier_minutes, return how many minutes earlier a star rises after days days, for the Earth.trail_angle, return the angle of a star trail in degrees after hours 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…