The Python Oracle

Check if only one variable in a list of variables is set

This video explains
Check if only one variable in a list of variables is set

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: A Thousand Exotic Places Looping v001

--

Chapters
00:00 Question
00:32 Accepted answer (Score 26)
01:10 Answer 2 (Score 10)
01:33 Answer 3 (Score 5)
01:46 Answer 4 (Score 1)
02:20 Thank you

--

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

Question links:
[logical xor post]: https://stackoverflow.com/questions/4328...

Accepted answer links:
[source]: http://docs.python.org/library/stdtypes....

Answer 2 links:
[all and any]: http://docs.python.org/library/functions...

--

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

--

Tags
#python #xor

#avk47