Jul-11-2021, 08:35 AM
Hello,
I have pairs list:
Note: here A,B,C,D,Z,X are just an example. In my code they correspond objects
How can I do that?
I have pairs list:
pairs=[[A,B],[C,D],[Z,X]]And I have also a queue list which is includes:
queue =[A,B,C,D,E,F,G,H,I,Z,X,J,K,L]And I want to make groups from list queue and this groups should be exactly the same with elements of pairs. I mean, I want to make [A,B] [C,D] [Z,X] groups if these elements[A,B,C,DZ,X] exist inside the queue list.
Note: here A,B,C,D,Z,X are just an example. In my code they correspond objects
How can I do that?