numpy.bitwise_xor(arr1, arr2, /, out=None, *, where=True, casting=’same_kind’, order=’K’, dtype=None, ufunc ‘bitwise_xor’)
# welcome to softhunt.net
# Python program explaining
# bitwise_xor() function
import numpy as np
num1 = 5
num2 = 15
print ("Input number1 : ", num1)
print ("Input number2 : ", num2)
ans = np.bitwise_xor(num1, num2)
print ("bitwise_xor of 5 and 15 : ", ans)
# welcome to softhunt.net
# Python program explaining
# bitwise_xor() function
import numpy as np
array1 = [3, 4, 54]
array2 = [23, 2, 3]
print ("Input array1 : ", array1)
print ("Input array2 : ", array2)
ans = np.bitwise_xor(array1, array2)
print ("Output array after bitwise_xor: ", ans)