You will write three small functions that turn the period and the brightness of a Cepheid into a distance.
The idea. In this course the luminosity is solar luminosities, with in days. The distance is with in watts and in W/m², and a light-year is m.
Your tasks.
luminosity, return the luminosity in solar luminosities.distance_m, return the distance in metres.distance_mly, return the distance in millions of light-years.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…