def list_to_str(list_arg, delim=' '):
    """
    Convert a list of numbers into a string.
    Args:
        list_arg: List of numbers.
        delim (optional): Delimiter between numbers.
    Returns:
        List converted to string.
    """

    ret = ''
    for i, e in enumerate(list_arg):
        if i > 0:
            ret += delim
        ret += str(e)
    return ret