Reputation: 15156
Let say I have 3 variables: a, b, c.
a
b
c
How can I check that just zero or one of them is true?
Upvotes: 0
Views: 43
Reputation: 168101
[a, b, c].count(true) < 2
.....................
Upvotes: 3