First solution in Clear category for Boolean Algebra by new_hoschi
OPERATION_NAMES = ("conjunction", "disjunction", "implication", "exclusive", "equivalence")
''' Simply evaluate the string which tells you the operation to be applied.
Every logical operation gets its own method and hence is called by boolean.
def boolean(x, y, operation):
return x and y
return x or y
return not x or y
return (x or y) and not (x and y)
April 26, 2021