You will write functions for the energy at a trophic level, for the number of levels that a chain can have, and for the share that passes between two levels.
The idea. The energy at level is the energy at the first level times the share, times. A level can exist only if it gets at least a needed amount of energy.
Your tasks.
energy_at. It gives the energy at a trophic level.levels_possible. It gives the number of levels that get at least the needed energy.percent_passed. It gives the share of the lower level that reaches the upper level, as a per cent.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…