# AND's behaviour ( returns last True case if all conditions are true else returns 1st False case )

>>> 5 and False and 3
False

>>> 5 and True and 3
3

>>> True and None and False
None

>>> True and False and None
False

# OR's behaviour ( returns 1st True case )

>>> True or None or False or 3
True

>>> None or 3 or False
3

>>> 3 or 4 or 5
3

comments powered by Disqus