xor operator

Barry barry at barrys-emacs.org
Mon Nov 13 16:03:12 EST 2023



> On 13 Nov 2023, at 17:48, Dom Grigonis <dom.grigonis at gmail.com> wrote:
> 
> Short circuiting happens, when:
> xor([True, True, False, False], n=1)
> At index 1 it is clear that the answer is false.

Can you share an example with 4 values that is true?
And explain why it is xor.

Barry



More information about the Python-list mailing list