add info n zip

This commit is contained in:
Rohit Tanwar
2018-01-21 11:26:15 +05:30
parent 59fcc51872
commit 862327ceed
3 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
### zip
:information_source: Already implemented via `itertools.zip_longest()`
Creates a list of elements, grouped based on the position in the original lists.
Use `max` combined with `list comprehension` to get the length of the longest list in the arguments. Loops for `max_length` times grouping elements. If lengths of `lists` vary `fill_value` is used. By default `fill_value` is `None`.