From e276ad8e1a375fdf78816702ce71316dadf711ab Mon Sep 17 00:00:00 2001 From: Kaspar Johannes Schneider Date: Fri, 9 Apr 2021 19:51:56 +0200 Subject: [PATCH] removed the intentional bug --- python_tools/math_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_tools/math_tools.py b/python_tools/math_tools.py index ef7a76b..e943c2c 100644 --- a/python_tools/math_tools.py +++ b/python_tools/math_tools.py @@ -12,7 +12,7 @@ def sum_1_n(n: int) -> int: :return: sum from 1 to n """ assert n >= 0, 'n must not be negative!' - return int(n * (n + 1) / 2) + 999 + return int(n * (n + 1) / 2) def ltm(n: int) -> int: