Assignment AI 1 D1 20233563 SHOAIB SAMIM
Assignment AI 1 D1 20233563 SHOAIB SAMIM
import numpy as np
Output:
Output:
# 9. Element-wise operations
print(arr7 + arr8, arr7 - arr8, arr7 * arr8, arr7 / arr8)
Output:
plt.xlabel('Value Range')
plt.ylabel('Frequency')
plt.title('Histogram with 10 Bins')
plt.show()
Output:
# 19. Simulate coin toss experiments
print(np.random.binomial(10, 0.5, 20))
Output: