728x90

 

def solution(my_str, n):
    return [my_str[i : i+n] for i in range(0, len(my_str),n)]
728x90

+ Recent posts