I have a list or matrix with tuples M = [(1,4),(1,5),(3,6),(4,5)]. I want to extract those touples in a form that find simlar ones and add them in a specific list inside a new matrix list. The final view should be like this. Final_Matrix = [(1,4,5), (3,6)]
Thank you
Aucun commentaire:
Enregistrer un commentaire