You will write three small functions about saving energy and water.
The idea. An LED bulb of low power saves energy. The energy saved in kWh is the difference of the powers in W, times the hours, divided by 1000. Coal makes 0.8 kg of carbon dioxide for each kWh.
Your tasks.
led_saving, return the kWh saved in a day when a bulb of old W is changed for one of new W and used for hours hours each day.yearly_co2, return the kg of carbon dioxide saved in a year of 365 days, with coal electricity. Use your own function led_saving.tank_days, return how many days a tank of tank litres lasts for people people who use litres_each litres each day.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…