Simplest solution for beginners
\n\n# Code\n\nclass Solution:\n    def divideString(self, s: str, k: int, fill: str) -> List[str]:\n        res=[]\n        for i in range(0,len(s),k):\n       
\n\n# Code\n```\nclass Solution:\n    def divideString(self, s: str, k: int, fill: str) -> List[str]:\n        res=[]\n        for i in range(0,len(s),k):\n            res.append(s[i:i+k])\n        diff=abs(len(res[-1])-k)\n        \n        if len(res[-1])!=k:\n            for i in range(diff):\n                res[-1]+=fill \n        return res\n                \n            \n\n\n        \n```
['Python3']