Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy bitwise_and Example When inputs are numbers

# 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)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #Example #When #inputs #numbers
ADD COMMENT
Topic
Name
1+3 =