Closed harshraj8843 closed 1 year ago
!assign
It seems that the "find-sum-of-digits-of-a-number.py" file is already in the "program/find-sum-of-digits-of-a-number" folder containing the requested solution.
Thanks, @Pinklemonade33 for noticing this issue 🤗
We may have missed it in codinasion/program#5707
!assign
Description
Write a Python program to find sum of digits of a number
Suppose you have a number
n
and you want to find the sum of its digits. For example, ifn = 123
, then the sum of its digits is1 + 2 + 3 = 6
.How to contribute
- Save the solution in `find-sum-of-digits-of-a-number.py` file - Add `find-sum-of-digits-of-a-number.py` file in `program/find-sum-of-digits-of-a-number` folder