Python simple solution for beginners ===> Runtime 23ms faster 100%, memory 66.67%
\tclass Solution:\n\t\tdef divideString(self, s: str, k: int, fill: str) -> List[str]:\n\t\t\tlst = []\n\t\t\tn = len(s)\n\t\t\tfor i in range(0, n, k):\n\t\t\t
\tclass Solution:\n\t\tdef divideString(self, s: str, k: int, fill: str) -> List[str]:\n\t\t\tlst = []\n\t\t\tn = len(s)\n\t\t\tfor i in range(0, n, k):\n\t\t\t\tlst.append(s[i:i+k])\n\n\t\t\tlast_len = len(lst[-1])\n\t\t\tif last_len != k:                         # check length of the last element in the list\n\t\t\t\tlast_str = lst[-1]\n\t\t\t\tfor i in range(last_len, k):\n\t\t\t\t\tlast_str += fill\n\t\t\t\tlst[-1] = last_str\n\t\t\treturn lst
[]