I have got the following python expression in my code
import numpy as np
a = np.array([1,0,1,0])
b = np.array([True,False,False,True])
print a[b],b[a]
The output i am getting looks like this:
[1 0] [False True False True]
I am not able to understand how this output is generated.
Can anybody explain it.
numpy. After that, you will figure out the answer to this problem.