Array From Existing Data
Qus. 1 : <p>What will be the output of the following ?</p><pre>import numpy as np<br>a=np.array([2,4,1])<br>b=a.copy()<br>a[1]=3<br>print(b)</pre>
- [2 4 1]
- [2 3 1]
- [3 4 1]
- [2 4 3]
- numpy.linspace()
- numpy.range()
- numpy.arrange()
- numpy.spaceline()
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