My goal is to slice string several time. That is, when [2,3,1] given, string 'ABCDEF' should be 'AB','CDE' and 'F'.Is there a function prepared in python for this task or How to make function with built-in functions?
list [2,3,1] given.
string 'ABCDEF' given,
func('ABCDEF',[2,3,1]) --> 'AB','CDE' and 'F'