You will write a function for the length of the day that also works in the polar summer and the polar winter, and one for the direction of sunrise. Angles are in degrees.
The idea. and the day lasts hours. If the right side is or less, the Sun never sets ( hours). If it is or more, the Sun never rises ( hours). The Sun rises at from north, with .
Your tasks.
day_length, return the hours of daylight, using c.day_length return 24.0 when c <= -1 and 0.0 when c >= 1.sunrise_direction, return in degrees.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…