summaryrefslogtreecommitdiff
path: root/progs/a178.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a178.py')
-rw-r--r--progs/a178.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a178.py b/progs/a178.py
new file mode 100644
index 0000000..6ae8528
--- /dev/null
+++ b/progs/a178.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