summaryrefslogtreecommitdiff
path: root/progs/a178.py
blob: 6ae85285207556b15d6104b4f409f047e02b6711 (plain)
1
2
3
4
5
6
7
def unique_sublists(list1):
    result ={}
    for l in list1: 
        result.setdefault(tuple(l), list()).append(1) 
    for a, b in result.items(): 
        result[a] = sum(b)
    return result