Easy
Histogram Bar Count
Read numbers and a number of bins. Draw
ax.hist(data, bins=k) and print how many bars it drew (len(patches)).Input
A line of numbers, then k.
Output
One integer.
Sample 1
Input
1 2 2 3 3 3 3
Output
3
Sample 2
Input
5 6 7 1
Output
1
Output appears here