Given the following set of data :
Weight measurements for 16 small orders of French-fries (in grams). 78 72 69 81 63 67 65 75 79 74 71 83 71 79 80 69
Create a step type of histogram from the above data.
import matplotlib.pyplot as plt weights = [78, 72, 69, 81, 63, 67, 65, 75, 79, 74, 71, 83, 71, 79, 80, 69] plt.hist(weights, histtype = 'step') plt.title('Weight Distribution of French Fries Orders') plt.show()