You will write three small functions about the density of the Universe.
The idea. The critical density is with in . A value in km/s per Mpc is changed to by dividing by . A share of the density, divided by the mass of a hydrogen atom, gives atoms in each cubic metre.
Your tasks.
hubble_per_second, return in .critical_density, return the critical density in kg/m³.atoms_per_m3, return the number of hydrogen-atom masses in each cubic metre for a density in kg/m³.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…