I am trying to write a boolean expression in Python, but it appears Python can only do XOR expressions with bit operations.
What would be the best way to go about writing this expression in Python without the XOR operator.
(A ^ B ^ C ^ D) U ((B U C U D)' XOR A)
EDIT:
I've attempted this:
if (A and B and C and D) or ((A and not (B or C or D)) or (not A and (B and C and D))):
and I'm looking to simplify it.