Skip to content
Subhajit Sahu edited this page Mar 25, 2021 · 7 revisions

Checks if even no. of values are true. 📰 📘

Similar: xor, xnor.
Similar: and_, or_, not_, xor.


xnor(a, b, ...)
# a: 1st boolean
# b: 2nd boolean
from extra_boolean import xnor


xnor(True, True)
# True

xnor(False, True)
# False

xnor(True, True, False, False)
# True

xnor(True, True, True, False)
# False


References

Clone this wiki locally