1>>> x = "qwertyui"
2>>> chunks, chunk_size = len(x), len(x)/4
3>>> [ x[i:i+chunk_size] for i in range(0, chunks, chunk_size) ]
4['qw', 'er', 'ty', 'ui']
1>>> x = "qwertyui"
2>>> chunks, chunk_size = len(x), len(x)/4
3>>> [ x[i:i+chunk_size] for i in range(0, chunks, chunk_size) ]
4['qw', 'er', 'ty', 'ui']
5
1some_string="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2x = 3
3res = [some_string[y - x:y] for y in range(x, len(some_string) + x, x)]
4print(res)
5