Code:
t=int(input());
i=0;
while(i<t):
a=int(input());
w=str(a);
e=list(w);
output=0;
for ij in e:
output=output+int(ij);
print(output);
i=i+1;
Python for beginners: https://www.youtube.com/watch?v=egq7Z...
Python for beginners: https://www.youtube.com/watch?v=egq7Z...
0 Comments:
Post a Comment