I was assigned to write python function that gives the histogram of data. Each histogram element H(k) corresponds to the frequency of k in the data using if and for loop statements.
The data list A=[13, 15, 16, 19, 20, 20, 21, 25, 22, 25, 30, 33, 36, 40, 33, 25, 25, 35, 35, 35, 35, 45, 46, 22, 52, 70, 16]
Anyone can help?