Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
using eval solution in Clear category for Boolean Algebra by ann3leo
def boolean(x, y, operation):
operation_dict = {
"conjunction": "x and y",
"disjunction": "x or y",
"implication": "not x or y",
"exclusive": "x != y",
"equivalence": "x == y",
}
return eval(operation_dict[operation])
July 2, 2021