From ff322a6c7bf22f04512b34bbc7ef8c3558683280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 5 Feb 2019 21:43:37 +0100 Subject: [PATCH] List --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f580646..f79be8f 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,13 @@ List ``` ```python +list_of_chars = list() sum_of_elements = sum() elementwise_sum = [sum(pair) for pair in zip(list_a, list_b)] sorted_by_second = sorted(, key=lambda el: el[1]) sorted_by_both = sorted(, key=lambda el: (el[1], el[0])) flattened_list = list(itertools.chain.from_iterable()) product_of_elems = functools.reduce(lambda out, x: out * x, ) -list_of_chars = list() ``` ```python