for A in False, True:
    for B in False,True:
        nonA = not A
        nonB = not B
        nonAetnonB = nonA and nonB
        AouB = A or B
        nonAouB = not AouB

        print('{}\t{}\t{}\t{}\t{}\t{}\t{}'.format(A,B,nonA,nonB,nonAetnonB,AouB,nonAouB))
f357493b040c887bf656d23eafdfdd9807f3eee4
<mask token>

for A in (False, True):
    for B in (False, True):
        nonA = not A
        nonB = not B
        nonAetnonB = nonA and nonB
        AouB = A or B
        nonAouB = not AouB
        print('{}\t{}\t{}\t{}\t{}\t{}\t{}'.format(A, B, nonA, nonB,
            nonAetnonB, AouB, nonAouB))

for A in False, True:
    for B in False,True:
        nonA = not A
        nonB = not B
        nonAetnonB = nonA and nonB
        AouB = A or B
        nonAouB = not AouB

        print('{}\t{}\t{}\t{}\t{}\t{}\t{}'.format(A,B,nonA,nonB,nonAetnonB,AouB,nonAouB))