You will write three functions about stars seen from the northern hemisphere. Latitudes and declinations are in degrees, south negative.
The idea. From latitude N a star never sets if and never rises if . Its highest altitude is .
Your tasks.
never_sets, return True if the star never sets, and False if it does.never_rises, return True if the star never rises.highest, return the highest altitude of the star.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…