I am pretty new to python, so my question is:
I have a list like this:
L = ['Name1', 'String1', 'String2', 'String3', 'Name2', 'String4', 'String5', 'String6', ...]
I would like to convert it into a new list in which all the strings after a certain 'name' are in a sub-list with the name like:
L2 = [['Name1', 'String1', 'String2', 'String3'],['Name2', 'String4', 'String5', 'String6'],[...]]
Whats the best way to do that?
Name.*appears