Fenyolab.org

import matplotlib.pyplot as plt. x = [21,22,23,4,5,6,77,8,9,10,31,32,33,34,35,36,37,18,49,50,100] num_bins = 5. plt.hist(x, num_bins, facecolor='red') plt.show() f) Write code to create an ndarray having 9 ones in it. Write statements to change 4th and 8th elements of this array to 5 and 87. 2. 1 mark for creation of array with 9 ones. ½ mark each for updating values. import numpy as np. a=np ... ................
................