here is my solution->>:)
*plz upvote if you find my solution helpful***\n\nclass Solution:\n    def digitSum(self, s: str, k: int) -> str:\n        l=len(s)\n    \n        while(l>k):\n
*****plz upvote if you find my solution helpful*****\n```\nclass Solution:\n    def digitSum(self, s: str, k: int) -> str:\n        l=len(s)\n    \n        while(l>k):\n            s1=""\n            for i in range(0,len(s),k):#0 -10\n                \n                sm=0\n                for j in range(i,i+k):\n                    if(j<len(s)):\n                        sm+=int(s[j])\n                s1=s1+str(sm)\n            \n            s=s1\n            l=len(s)\n        return s\n```
['Python']