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

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

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


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


xor(True, False)
# True

xor(True, True)
# False

xor(True, True, True, False)
# True

xor(True, True, True, True)
# False


References

Clone this wiki locally