Answers for "NumPy invert Code When inputs are Boolean"

0

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)
Posted by: Guest on April-29-2022

Code answers related to "NumPy invert Code When inputs are Boolean"

Python Answers by Framework

Browse Popular Code Answers by Language