summaryrefslogtreecommitdiff
path: root/progs/a157.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a157.py')
-rw-r--r--progs/a157.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a157.py b/progs/a157.py
new file mode 100644
index 0000000..9b88c14
--- /dev/null
+++ b/progs/a157.py
@@ -0,0 +1,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 \ No newline at end of file