You will write three small functions. One finds half a division, which is the largest error of a scale. One turns it into a percentage of a reading. One chooses the better of two pieces of apparatus.
The idea. A scale is read to the nearest half division, so the largest error is half a division. As a percentage of the reading it is . The apparatus with the smaller percentage error is the more exact one for that reading.
Your tasks.
half_division(division).percent_error(division, reading).better(error_cylinder, error_burette). It returns the name of the apparatus with the smaller error, either "measuring cylinder" or "burette".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…