Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Boolean Algebra by arek.kowalski107
def boolean(x, y, operation):
if operation == "conjunction":
result = x & y
elif operation == "disjunction":
result = x | y
elif operation == "implication":
result = not x or y
elif operation == "exclusive":
result = x ^ y
elif operation == "equivalence":
result = x == y
return int(result)
Dec. 14, 2016