simple PYTHON solution || easy to understand
This is the solution which can be understand easily\n\nhere i have iterated until I get the size less than or equal to k :\nfor every iteration the value of the
This is the solution which can be understand easily\n\nhere i have iterated until I get the size less than or equal to k :\nfor every iteration the value of the string changes\nfinally you will get the answer ..\n\n```\nclass Solution:\n    def digitSum(self, s: str, k: int) -> str:\n        \n        while len(s)>k:\n            \n            s=[int(i) for i in s]\n            x=""\n            for i in range(0,len(s),k):\n                x+=str(sum(s[i:i+k]))\n            s=x\n        return s\n```\n[https://github.com/Narendrakumarreddy-Kadiri](http://)
['Python']