diff options
Diffstat (limited to 'progs/a618.py')
-rw-r--r-- | progs/a618.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a618.py b/progs/a618.py new file mode 100644 index 0000000..c231942 --- /dev/null +++ b/progs/a618.py @@ -0,0 +1,3 @@ +from itertools import combinations_with_replacement
+def combinations_colors(l, n):
+ return list(combinations_with_replacement(l,n))
\ No newline at end of file |