Skip to content

Commit 278e911

Browse files
authored
SplitIntegerAndSum
1 parent c551891 commit 278e911

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SumofInteger.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
n=int(input())
2+
li=list(str(n))
3+
tot=0
4+
for i in range(0,len(li)):
5+
tot+=int(li[i])
6+
print(tot)

0 commit comments

Comments
 (0)