Arithmetic Operations on numPy Array
Qus. 1 : <p>What will be the output of the following ?</p><pre>import numpy as np<br>a=np.array([2,4])<br>b=np.array([3,5])<br>c=a*b<br>print(c)</pre><div><br></div>
- [ 2 4 3 5]
- [ 6 20]
- [ 6 12 10 20]
- 26
- [2 4 1 3 5 ]
- [5 9 1]
- 15
- ValueError
- 0
- 1
- 2
- 3
- 18
- 20
- 21
- 22
Programs
Create a numpy array having two dimensions and shape(3,3) and perform the following operations on array elements:
Write a program to find the intersection of two arrays