mardi 14 juin 2016

How to know which statement is true in an Python or statement

Is it possible to know which statement is true in an if condition including or?

For example :

if a == b or a == c:
    print(true_one)

I want to know if it is achievable to find the "true one" (or both) without splitting this condition into two others.

Aucun commentaire:

Enregistrer un commentaire