You will write three small functions about the Hubble constant.
The idea. The Hubble constant is , with in m/s and in m, so it is in per second. The age of the Universe is estimated by . One year is s.
Your tasks.
hubble_constant, return for a speed speed in m/s and a distance distance in m.distance_from_speed, return the distance in m for a speed speed in m/s and a Hubble constant h0.age_in_years, return the estimate of the age of the Universe, in years, for a Hubble constant h0 in per second.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…