You will write functions that summarise a list of measurements: the mean, the range, and the number of values in a class.
The idea. The mean is the total divided by the number of values. The range is the largest value minus the smallest. A class counts the values from one number up to, but not including, the next class boundary.
Your tasks.
mean. It gives the total divided by the number of values.data_range. It gives the largest value minus the smallest.count_in_class. It gives how many values are at least low and less than high.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…