def flatten_iter(iterable):
for element in iterable:<EOL><INDENT>if isinstance(element, Iterable):<EOL><INDENT>yield from flatten_iter(element)    <EOL><DEDENT>else:<EOL><INDENT>yield element<EOL><DEDENT><DEDENT>
Takes as input multi dimensional iterable and
returns generator which produces one dimensional output.