[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-10 05:01:19 +00:00
parent 78849a7437
commit ee5dbdda82

View File

@ -8,6 +8,7 @@ without the need for iteration.
https://www.cuemath.com/algebra/sum-of-squares/
"""
def sum_of_squares(n: int) -> int:
"""
Implements the sum of squares formula for the first n natural numbers.
@ -30,4 +31,5 @@ def sum_of_squares(n: int) -> int:
if __name__ == "__main__":
import doctest
doctest.testmod()