Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Boolean Algebra by tokiojapan55
def boolean(x, y, operation):
return {
"conjunction":[0,0,0,1],
"disjunction":[0,1,1,1],
"implication":[1,0,1,1],
"exclusive":[0,1,1,0],
"equivalence":[1,0,0,1]
}[operation][x+y*2]
June 23, 2020