Plot a histogram of a class test of 40 students based on random sets of marks obtained by the students (MM=100).
import matplotlib.pyplot as plt import numpy as np marks = np.random.randint(0, 101, 40) plt.hist(marks) plt.title('Class Test Marks') plt.xlabel('Marks') plt.ylabel('Frequency') plt.show()