diff options
Diffstat (limited to 'progs/a179.py')
-rw-r--r-- | progs/a179.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a179.py b/progs/a179.py new file mode 100644 index 0000000..223a67b --- /dev/null +++ b/progs/a179.py @@ -0,0 +1,4 @@ +from itertools import combinations
+def find_combinations(test_list):
+ res = [(b1 + a1, b2 + a2) for (a1, a2), (b1, b2) in combinations(test_list, 2)]
+ return (res)
\ No newline at end of file |