(a, b)
return itertools.chain.from_iterable(zip(a, b))
Interleaves the contents of two iterables.
Interleaves the contents of two iterables.
Interleaves the contents of two iterables .
def interleave(a, b):
  """Interleaves the contents of two iterables."""
  return itertools.chain.from_iterable(zip(a, b))
def interleave ( a , b ) : return itertools . chain . from_iterable ( zip ( a , b ) )