You will write three small functions that follow a product through the steps of downstream processing.
The idea. Each step keeps a share of what it gets. The overall yield is the product of the shares.
Your tasks.
overall_yield. It takes a list of shares, each between 0 and 1, and gives their product.finished_amount. It gives the amount of the finished product from the amount in the culture and the list of shares.start_needed. It gives the amount that the culture must hold, to end with a target amount.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…