def calculation(a): a = str(a) b = list(a) c = len(b) d = 0 while c!=0: b[c-1] = int(b[c-1]) d+=b[c-1] c-=1 return d