Can anyone suggest a good solution to remove duplicates from nested lists if wanting to evaluate duplicates based on first element of each nested list?
The main list
If the order does not matter, code below
print [ [k] + v for (k, v) in dict( [ [a[0], a[1:]] for a in reversed(L) ] ).items() ]
gives
[['2', '5', '6'], ['14', '65', '76'], ['7', '12', '33']]