You will write three small functions about the building of planets. Distances are in AU and times in billions of years.
The idea. A dark body without air at from a star of luminosity has the temperature kelvin. Ice forms below about . After half-lives, a fraction is left.
Your tasks.
temperature, return the temperature in kelvin at d AU from a star of luminosity lum.frost_line, return the distance in AU at which the temperature falls to ice kelvin.age, return the age, in billions of years, of a rock that has the fraction left of an isotope, with a half-life half_life.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…