Numpy Invert -Code, wenn Eingaben boolean sind
# 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)
Outrageous Ostrich