def represented_args ( args , separator = " " ) : result = [ ] if args : for text in args : result . append ( quoted ( short ( text ) ) ) return separator . join ( result )
python quotion mark and single quote
Args : args ( list | tuple | None ) : Arguments to represent separator ( str | unicode ) : Separator to use
def represented_args(args, separator=" "):
    """
    Args:
        args (list | tuple | None): Arguments to represent
        separator (str | unicode): Separator to use

    Returns:
        (str): Quoted as needed textual representation
    """
    result = []
    if args:
        for text in args:
            result.append(quoted(short(text)))
    return separator.join(result)