[feat] statistics answerer: add the ability to calculate the range of a set

This commit is contained in:
benpiano800 2025-07-29 14:12:03 -05:00 committed by Bnyro
parent 6b9e12e4c1
commit 46f41d2138

View File

@ -21,6 +21,7 @@ kw2func = [
("avg", lambda args: sum(args) / len(args)),
("sum", sum),
("prod", lambda args: reduce(mul, args, 1)),
("range", lambda args: max(args) - min(args)),
]