0

for example. I have a list like this.

myList = ['24', '8', '1', '4', '13', '11', '24', '5', '7', '5', '3', '1', '4', '23', '9', '7', '8', '3', '11', '4', '3', '10', '2', '10', '1', '23', '6']

I want to group it by the length of 9. The output should be like this:

[['24', '8', '1', '4', '13', '11', '24', '5', '7'], ['5', '3', '1', '4', '23', '9', '7', '8', '3'], ['11', '4', '3', '10', '2', '10', '1', '23', '6']]

0 Answers0