@slide(executable=True)
def and_or():
    """ Advanced "and" and "or" usage.

    When concatenated, "and" will give back the value
    of the first non-true operand or the last operand if all the operands
    are True.
    When concatenated, "or" will give back the last operand if all are False or
    the first True operand.
    """
    print("---and---")
    print(True and False and None)
    print(True and None and False)
    print(True and 1 and 20 < 10)
    print(True and 10 < 20 and 1)
    print("---or---")
    print(True or False or None)
    print(1 or None or False)
    print(False or None or 0)
    print(0 or None or False)
dataset/ETHPy150Open jsoucheiron/pttdm/pttdm.py/and_or/swapped operands of `<`