def and_(iter): """Do an and logic condition over the iterable element. :param iterable iter: meat for condition """ for i in iter: if not i: return False return True