You will write three small functions about sunlight and the Sun's power. Distances are in AU, and powers are in watts.
The idea. Light takes to cross . The strength of sunlight is . A power changes mass at the rate with .
Your tasks.
light_time_minutes, return the minutes that light needs to travel d AU.solar_strength, return the strength of sunlight at d AU in .mass_per_second, return the kg of mass that a power power in watts uses each second.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…