[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] 2023-10-10 23:17:25 +00:00
parent 2b102bb260
commit af8ae4e1e4

View File

@ -5,12 +5,12 @@
def binary_exponentiation(a: int, n: int) -> int:
'''
"""
>>> binary_exponentiation(3, 5)
243
>>> binary_exponentiation(10, 3)
1000
'''
"""
if n == 0:
return 1
@ -24,6 +24,7 @@ def binary_exponentiation(a: int, n: int) -> int:
if __name__ == "__main__":
import doctest
doctest.testmod()
try: