I get a weird result and I try to apply the and or the or operator to 2 Boolean lists in python. I actually get the exact opposite of what I was expec
and
or
Very convenient way:
>>> import numpy as np >>> np.logical_and([True, False, False], [True, True, False]) array([ True, False, False], dtype=bool) >>> np.logical_or([True, False, False], [True, True, False]) array([ True, True, False], dtype=bool)