You will write three functions for a greener business: the number of uses that recycling gives a material, the new material a factory must buy, and a simple carbon account.
The idea. With a share recycled each round, one tonne serves uses, and a factory that needs tonnes buys . The carbon account adds the electricity times for each kWh and the diesel times for each litre.
Your tasks.
uses, return the number of uses of each tonne for a recycled share r.new_material, return the new tonnes bought for a need of demand tonnes and a share r.carbon_kg, return the kilograms of carbon dioxide for kwh of electricity and litres of diesel.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…