I have been trying to add the individual digits of a larger number for a while now, and I\'m having some trouble. I was wondering if anyone could help me.
For example, s
one more alternative is to use build in list([iterable]) function
bigNumber = '23455869654325768906857463553522367235' print sum(int(x) for x in list(bigNumber)) print sum(int(x) for x in list(bigNumber)[5:11])