Python3 elegant pythonic clean and easy to understand
Simple while loop and slicing  to repeat 3 set process and aggregation\n\n\nclass Solution:\n    def digitSum(self, s: str, k: int) -> str:\n        while len(s
Simple while loop and slicing  to repeat 3 set process and aggregation\n\n```\nclass Solution:\n    def digitSum(self, s: str, k: int) -> str:\n        while len(s) > k:\n            set_3 = [s[i:i+k] for i in range(0, len(s), k)]\n            s = \'\'\n            for e in set_3:\n                val = 0\n                for n in e:\n                    val += int(n)\n                s += str(val)\n        return s\n```\n\ncan be condensed and more pythonic:\n\n```\n        while len(s) > k:\n            set_3 = [s[i:i+k] for i in range(0, len(s), k)]\n            s = \'\'\n            for e in set_3:\n                s += str(sum([int(n) for n in e]))\n        return s\n```
['Python', 'Python3']