Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

NumPy invert Code When inputs are Boolean

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

import numpy as np

bool = [True, False, False, True, False, True]
print("Input array : ", bool)

	
ans = np.invert(bool)
print ("Output array after inversion: ", ans)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #NumPy #invert #Code #When #inputs #Boolean
ADD COMMENT
Topic
Name
3+9 =