You will write functions for the viability of a stored seed lot, for the time until the lot must be grown out, and for the threatened categories of the IUCN Red List.
The idea. In a model, viability is start * 0.5 ** (years / half_life). The time to a limit is half_life * log(limit / start) / log(0.5). The threatened categories are CR, EN and VU.
Your tasks.
viability. It gives the per cent of viable seeds after some years.grow_out. It gives the years until the viability falls to the limit.is_threatened. It gives True for "CR", "EN" and "VU", and False for any other code.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…