Update zip.md
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user