You will write three small functions that read a list of temperatures taken once every minute while a substance is heated steadily.
The idea. A flat part is a stretch of readings with the same temperature. A change of state makes one. A flat part of readings lasts minutes.
Your tasks.
flat_parts, return a list of (temperature, minutes) for each flat part of at least 2 equal readings in a row.melting_point, return the temperature of the first flat part.boiling_point, return the temperature of the last flat part.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…