def and_(*xs):
    """Returns the first falsy value among the arguments, or the final
    argument if all values are truthy. If no arguments are provided,
    True is returned.

    """
    final = True
    for x in xs:
        if not x:
            return x
        final = x
    return final