Skip to content

Commit

Permalink
removed the intentional bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparJohannesSchneider authored Apr 9, 2021
1 parent 7437085 commit e276ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python_tools/math_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e276ad8

Please sign in to comment.