fix zip example

This commit is contained in:
Rohit Tanwar
2018-01-21 10:58:47 +05:30
parent 7439cc7e16
commit 1a6edf1a07

View File

@ -19,7 +19,7 @@ def zip(*args, fillvalue=None):
``` ```
``` python ``` python
zip(['a', 'b'], [1, 2], [True, False]) // [['a', 1, True], ['b', 2, False]] zip(['a', 'b'], [1, 2], [True, False]) # [['a', 1, True], ['b', 2, False]]
zip(['a'], [1, 2], [True, False]) // [['a', 1, True], [None, 2, False]] zip(['a'], [1, 2], [True, False]) # [['a', 1, True], [None, 2, False]]
zip(['a'], [1, 2], [True, False], fill_value = '_') // [['a', 1, True], ['_', 2, False]] zip(['a'], [1, 2], [True, False], fill_value = '_') # [['a', 1, True], ['_', 2, False]]
``` ```