Surpose the string:
'abcdeabcdeabcdeabcdeabcdeabcde'
split by :
'cdebbe'
output:
'ab c d e a b cdea b cd e abcdeabcde'
This means split string
'abcdeabcdeabcdeabcdeabcdeabcde'
by indexes
[2,3,4,6,10,14]
How to do this by Python? This question is similar to Split a list into parts based on a set of indexes in Python If follow the answers the out put is :
['ab', 'c', 'd', 'ea', 'bcde', 'abcd', 'eabcdeabcdeabcde']
isnt the expected output.