From e75808084fb7ee24d6dd0280bb8dbd92162d7e62 Mon Sep 17 00:00:00 2001 From: Rohit Tanwar Date: Sat, 20 Jan 2018 21:02:02 +0530 Subject: [PATCH] zip --- snippets/zip.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/zip.md b/snippets/zip.md index 62ff3685e..28d4f2cf6 100644 --- a/snippets/zip.md +++ b/snippets/zip.md @@ -18,7 +18,7 @@ def zip(*args, fillvalue=None): ``` ``` python -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], fill_value = '_'); // [['a', 1, True], ['_', 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], fill_value = '_') // [['a', 1, True], ['_', 2, False]] ``` \ No newline at end of file