Three classes of eight students each took the same test. You will find the five numbers of each class, the interquartile range of each, and which class is the most spread out in its middle half. Then the program draws the three box plots side by side.
The idea. The five numbers are the smallest value, Q1, the median, Q3 and the largest value. Q1 and Q3 are the medians of the lower and upper halves.
Your tasks.
five, return the five numbers of data.iqr with each class's IQR, Q3 minus Q1.widest to the name of the class with the largest IQR.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…