mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 14:43:43 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cbd20bfa5c
commit
7b27f18f9a
|
@ -14,6 +14,7 @@ super_digit(9875987598759875), which can be reduced by summing its digits.
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
|
||||||
def super_digit(n_str: str, repetitions: int) -> int:
|
def super_digit(n_str: str, repetitions: int) -> int:
|
||||||
"""
|
"""
|
||||||
Computes the super digit of a number formed by concatenating n_str repetitions times.
|
Computes the super digit of a number formed by concatenating n_str repetitions times.
|
||||||
|
@ -56,4 +57,3 @@ if __name__ == "__main__":
|
||||||
# Call the super_digit function and print the result
|
# Call the super_digit function and print the result
|
||||||
result = super_digit(n_str, repetitions)
|
result = super_digit(n_str, repetitions)
|
||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user