Hi,
Is there any better (shorter) way to negate a boolean list than:
?
I tried:
but it seems that "not" is not a function.
Thanks in advance,
David
Is there any better (shorter) way to negate a boolean list than:
>>negated_boole an_list = [not elem for elem in boolean_list]
I tried:
>>map(not, boolean_list)
Thanks in advance,
David
Comment