can any one tell me where my code went wrong?
def digit_sum (n):
digit = n%10
n = n // 10 # removing the rightmost number
for i in lis:
this is the working code, look and if something is not understading to you just ask
thanks i got this program.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.