Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Boolean Algebra by eugene100372
OPERATION_NAMES = {"conjunction":'x&y', "disjunction":'x|y', "implication":
'not(x>>y)', "exclusive":'(x+y)%2', "equivalence":'not(x^y)'}
def boolean(x, y, operation):
return eval(OPERATION_NAMES[operation])
Oct. 27, 2020
Comments: