# welcome to softhunt.net
# Python program explaining
# bitwise_and() function
import numpy as np
num1 = 5
num2 = 15
print ("Input number1 : ", num1)
print ("Input number2 : ", num2)
ans = np.bitwise_and(num1, num2)
print ("bitwise_and of 05 and 15 : ", ans)
# 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)
# welcome to softhunt.net
# Python program explaining
# bitwise_or() function
import numpy as np
num1 = 5
num2 = 15
print ("Input number1 : ", num1)
print ("Input number2 : ", num2)
ans = np.bitwise_or(num1, num2)
print ("bitwise_or of 5 and 15 : ", ans)
# welcome to softhunt.net
# Python program explaining
# bitwise_or() function
import numpy as np
array1 = [3, 4, 54]
array2 = [23, 2, 3]
print ("Input array1 : ", array1)
print ("Input array2 : ", array2)
ans = np.bitwise_or(array1, array2)
print ("Output array after bitwise_or: ", ans)