codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 170 forks source link

Write a Python program to find sum of digits of a number #4066

Closed harshraj8843 closed 1 year ago

harshraj8843 commented 1 year ago

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, if n = 123, then the sum of its digits is 1 + 2 + 3 = 6.

Input  : 123
Output : 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
Pinklemonade33 commented 1 year ago

!assign

Pinklemonade33 commented 1 year ago

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.

harshraj8843 commented 1 year ago

Thanks, @Pinklemonade33 for noticing this issue 🤗

We may have missed it in codinasion/program#5707

einan202 commented 11 months ago

!assign