<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flatten( iterables ):
 """ Flatten an iterable, except for string elements. """

    for it in iterables:
        if isinstance(it, str):
            yield it
        else:
            for element in it:
                yield element