def iterable_to_line(iterable):
    """
    A utility function for outputting dfa - converts an iterable object (e.g. list) to one line string
    :param iterable:
    :return: returns one line string
    """

    ret = ''
    for i in iterable:
        ret += str(i) + ' '
    ret += '\n'
    return ret