Array From Numerical Ranges
Qus. 1 : <p>What will be the output of the following ?</p><pre>import numpy as np<br>a = np.array( [2, 3, 4, 5] )<br>b = np.arange(4)<br>print(a+b)</pre>
- [2 3 4 5]
- [3 4 5 6]
- [1 2 3 4]
- [2 4 6 8]
- [1 5 2]
- [1 5 4]
- [2 3 4]
- [2 5 4]
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