Answers for "NumPy bitwise_and Example When inputs are arrays"

0

NumPy bitwise_and Example When inputs are arrays

# welcome to softhunt.net
# Python program explaining
# bitwise_and() function

import numpy as np

array1 = [3, 4,54]
array2 = [23, 2, 3]

print ("Input array1 : ", array1)
print ("Input array2 : ", array2)
	
ans = np.bitwise_and(array1, array2)
print ("Output array after bitwise_and: ", ans)
Posted by: Guest on April-27-2022

Code answers related to "NumPy bitwise_and Example When inputs are arrays"

Python Answers by Framework

Browse Popular Code Answers by Language