Apr-03-2024, 12:44 PM
Hi all
I am learning Numpy class they said bitwise operations but did not understand how the out put come like this
import numpy as np
a = np.array([1,2,3,4])
b = np.array([5,6,7,8])
print("a & b :",a&b)
Output
a & b : [1 2 3 0]
My doubt : What is the use of bitwise operators
How I got [1 2 3 0] this output
I am learning Numpy class they said bitwise operations but did not understand how the out put come like this
import numpy as np
a = np.array([1,2,3,4])
b = np.array([5,6,7,8])
print("a & b :",a&b)
Output
a & b : [1 2 3 0]
My doubt : What is the use of bitwise operators
How I got [1 2 3 0] this output