Apologies for any confusion in the explanation below, but I'm a little new to Python.
I have a list of text, and I would like to chunk the list up into larger pieces based on a separate list of values.
For example:
lst_a = ['This', 'is', 'an', 'example', 'of', 'a', 'simple', 'English', 'sentence.']
lst_b = [3, 4, 2]
Desired Result:
new_lst_a = ['This is an', 'example of a simple', 'English sentence.']
Any help/direction is greatly appreciated!