Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Boolean Algebra by lexin13
def boolean(x, y, operation):
return {
"conjunction": x and y,
"disjunction": x or y,
"implication": not x or y,
"exclusive": x != y,
"equivalence": x == y
}[operation]
Feb. 25, 2016