watex.utils.funcutils.smart_format#
- watex.utils.funcutils.smart_format(iter_obj, choice='and')[source]#
Smart format iterable object.
- Parameters:
iter_obj – iterable obj
choice – can be ‘and’ or ‘or’ for optional.
- Example:
>>> from watex.utils.funcutils import smart_format >>> smart_format(['model', 'iter', 'mesh', 'data']) ... 'model','iter','mesh' and 'data'