You will write three small functions that decide whether a rocket can leave the launch pad.
The idea. Each kilogram weighs 9.8 N, so weight = mass × 9.8. The net force upwards is the thrust minus the weight. The rocket lifts off only when the net force is more than zero.
Your tasks.
weight, return the weight in N of a rocket of mass kg.net_force, return the thrust minus the weight.lifts_off, return True if the net force is more than zero, and False if it is not.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…