PyDocs

Nav

Functional Programming Modules

zip_longest

itertools

function
  • zip_longest(*iterables, fillvalue=None)
Return a zip_longest object whose .__next__() method returns a tuple where
the i-th element comes from the i-th iterable argument.  The .__next__()
method continues until the longest iterable in the argument sequence
is exhausted and then it raises StopIteration.  When the shorter iterables
are exhausted, the fillvalue is substituted in their place.  The fillvalue
defaults to None or can be specified by a keyword argument.
0 Examples
No examples for itertools/zip_longest.
See Also
No see-alsos for itertools/zip_longest
0 Notes
No notes for zip_longest