I have a list of lists. If there are subslists that have the first three elements in common , merge them into one list and add all the fourth elements.
The problem i
Form the key from [:3] so that you get the first 3 elements.
[:3]