-1
hello! I have the following list in python of numbers:
['1','2','1','2','3','4','1','2','3','4','5','6','7','1','2','3','4','5','6','7']
And I want to break that list and create other lists in such a way that it looks like this:
[['1','2'],
['1','2','3','4'],
['1','2','3','4','5','6','7'],
['1','2','3','4','5','6','7']]
I have no idea how to do this operation.
The breaking criterio is always finding the number 1.
Add to the question how you tried to address problem and what were the problems faced and error messages. See Stack Overflow Question Checklist.
– Augusto Vasques
What is the criteria for breaking? When to start a new list?
– darcamo
Hello! The criterio for the new list is always find the number 1. Sorry if you got confused, I just realized now.
– Thiago Benevides