From b2314f491149be338797a5edb038573ff9e2c59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 26 Dec 2018 19:56:34 +0100 Subject: [PATCH] Operator --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c84273..75ba257 100644 --- a/README.md +++ b/README.md @@ -1014,7 +1014,10 @@ from operator import add, sub, mul, truediv, floordiv, mod, pow, neg, abs, \ ``` ```python -product_of_elems = functools.reduce(mul, ) +from enum import Enum +from functools import reduce + +product_of_elems = reduce(mul, ) sorted_by_second = sorted(, key=itemgetter(1)) sorted_by_both = sorted(, key=itemgetter(0, 1)) LogicOp = Enum('LogicOp', {'AND': (and_, ),