0

Let say I have 3 variables: a, b, c.

How can I check that just zero or one of them is true?

1 Answer 1

3
[a, b, c].count(true) < 2

.....................

Sign up to request clarification or add additional context in comments.

1 Comment

same idea : [a, b, c].count(true) <= 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.