MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / sum_of_digits.py

File sum_of_digits.py

maths/sum_of_digits.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def sum_of_digits(n: int) -> int:
2 """
3 Find the sum of digits of a number.
4 >>> sum_of_digits(12345)

Callers

nothing calls this directly

Calls 1

benchmarkFunction · 0.70

Tested by

no test coverage detected