You will write three small functions about starlight in the dust of the Galaxy.
The idea. Each kiloparsec lets the same fraction of the light through, so after kiloparsecs the share is percent. The distance for a given share is . Infrared light has the fraction .
Your tasks.
share, return the percentage of the light that gets through kpc kiloparsecs.reach, return the distance in kiloparsecs at which the share falls to percent.infrared_share, return the percentage of the infrared light that gets through kpc kiloparsecs.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…