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_, ),