leetcode 2138. Divide a String Into Groups of Size k (python)

NoSuchKey