From 1755086d5e6379f2209cdf062d77b1fba5fe8981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Dec 2018 02:32:26 +0100 Subject: [PATCH] Operator --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f3db72..4c9b53d 100644 --- a/README.md +++ b/README.md @@ -1077,8 +1077,7 @@ from operator import add, sub, mul, truediv, floordiv, mod, pow, neg, abs, \ ``` ```python -from functools import reduce -product_of_elems = reduce(mul, ) +product_of_elems = functools.reduce(mul, ) sorted_by_second = sorted(, key=itemgetter(1)) sorted_by_both = sorted(, key=itemgetter(0, 1)) ```