FunctionRacerProblemsRace

How the Values Spread

BeginnermatplotlibPython

Draw a histogram of values with bins equal-width bins and return the figure. A histogram cuts the range from the smallest to the largest value into bins and draws a bar for how many values fall in each.

Checked: the bars.

Example 1

values [1,2,2,3,3,3,7]
bins 3
draws
The chart to draw in example 1 of How the Values Spread

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More matplotlib problems