The Python Oracle

How do you get the logical xor of two variables in Python?

This video explains
How do you get the logical xor of two variables in Python?

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn
Track title: CC G Dvoks String Quartet No 12 Ame 2

--

Chapters
00:00 Question
00:46 Accepted answer (Score 1557)
01:01 Answer 2 (Score 635)
02:06 Answer 3 (Score 230)
02:26 Answer 4 (Score 54)
03:29 Thank you

--

Full question
https://stackoverflow.com/questions/4328...

Question links:
[logical xor]: http://en.wikipedia.org/wiki/Exclusive_o...

Answer 1 links:
[bool]: http://docs.python.org/library/functions...
[Nick Coghlan on the Python-3000 mailing list]: http://mail.python.org/pipermail/python-...

Answer 1 links:
[bool]: http://docs.python.org/library/functions...
[Nick Coghlan on the Python-3000 mailing list]: http://mail.python.org/pipermail/python-...

Answer 2 links:
[operator]: http://docs.python.org/library/operator....

Answer 3 links:
[Zach]: https://stackoverflow.com/questions/4328...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #logicaloperators