summaryrefslogtreecommitdiff
path: root/progs/a157.py
blob: 9b88c1405b60de18c23c797096ab7c557ec12f4d (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