91% better than other solutions in Python
\nimport textwrap\nclass Solution:\n    def divideString(self, s: str, k: int, fill: str) -> List[str]:\n        a=textwrap.fill(s,k).split()[::-1]\n        for
```\nimport textwrap\nclass Solution:\n    def divideString(self, s: str, k: int, fill: str) -> List[str]:\n        a=textwrap.fill(s,k).split()[::-1]\n        for i in range(len(a)):\n            if len(a[i])!=k:\n                string=fill*((k-len(a[i])))\n                # print(string)\n                a[i]+=string\n            else:\n                break\n        return a[::-1]\n```
['String', 'Python', 'Python3']