def intersperse(x, ys):
it = iter(ys)<EOL>try:<EOL><INDENT>y = next(it)<EOL><DEDENT>except StopIteration:<EOL><INDENT>return<EOL><DEDENT>yield y<EOL>for y in it:<EOL><INDENT>yield x<EOL>yield y<EOL><DEDENT>
Returns an iterable where ``x`` is inserted between
each element of ``ys``

:type ys: Iterable