def every_other(iterable):
items = iter(iterable)<EOL>while True:<EOL><INDENT>try:<EOL><INDENT>yield next(items)<EOL>next(items)<EOL><DEDENT>except StopIteration:<EOL><INDENT>return<EOL><DEDENT><DEDENT>
Yield every other item from the iterable

>>> ' '.join(every_other('abcdefg'))
'a c e g'