Update recursive_digit_sum.py

This commit is contained in:
mankala sharathchandra 2024-10-19 15:27:26 +05:30 committed by GitHub
parent 545d4aaa64
commit cbd20bfa5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,6 @@ super_digit(9875987598759875), which can be reduced by summing its digits.
from __future__ import annotations
def super_digit(n_str: str, repetitions: int) -> int:
"""
Computes the super digit of a number formed by concatenating n_str repetitions times.
@ -57,3 +56,4 @@ if __name__ == "__main__":
# Call the super_digit function and print the result
result = super_digit(n_str, repetitions)
print(result)