You will write three small functions that measure the sky with your hand.
The idea. At arm's length a fist covers about 10 degrees and a little finger about 1 degree. The full Moon is about half a degree wide.
Your tasks.
hand_to_degrees, return the degrees covered by fists fists and fingers fingers.moons_in, return how many full Moons fit side by side in a gap of gap degrees.widest, the dictionary gaps holds the names of star pairs and their gaps as (fists, fingers). Return the name of the widest gap.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…