You will write three functions about how big the Sun and the Moon look. Distances and diameters are in km and angles in degrees.
The idea. , or math.degrees(D / d). A central eclipse is total if the Moon looks at least as big as the Sun, and annular if it looks smaller. To look a given size , a body must be at , with in radians.
Your tasks.
angular_size, return the angular diameter in degrees.eclipse_kind, return "total" or "annular".distance_for, return the distance at which a body looks angle degrees across.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…