Update zip.md

This commit is contained in:
Angelos Chalaris
2020-01-05 14:25:58 +02:00
committed by GitHub
parent a8f2284db3
commit caad1431ca

View File

@ -9,7 +9,7 @@ Use `max` combined with `list comprehension` to get the length of the longest li
Loop for `max_length` times grouping elements.
If lengths of `lists` vary, use `fill_value` (defaults to `None`).
[`zip`](https://docs.python.org/3/library/functions.html#zip) and [`itertools.zip_longest`](https://docs.python.org/3/library/itertools.html#itertools.zip_longest) provide similar functionality to this snippet.
[`zip()`](https://docs.python.org/3/library/functions.html#zip) and [`itertools.zip_longest()`](https://docs.python.org/3/library/itertools.html#itertools.zip_longest) provide similar functionality to this snippet.
```py
def zip(*args, fill_value=None):