You will write three small functions that analyse a test of insulation. Several identical beakers of hot water are left to cool. Each has a starting temperature and an end temperature, in degrees Celsius, after the same time.
The idea. The fall in temperature is the starting temperature minus the end temperature. The best insulator has the smallest fall.
Your tasks.
fall, return the fall in temperature from start and end.best_insulator, return the name of the wrapping with the smallest fall from data, a dictionary of name: (start, end).percent_saved, return by what percentage the fall of wrapped is smaller than the fall of bare.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…