We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0980ff commit 7eca215Copy full SHA for 7eca215
subsets
@@ -1,7 +1,7 @@
1
from itertools import chain, combinations
2
-def give_subsets(iterable):
+def give_subsets(a):
3
4
- l = list(iterable)
+ l = list(a)
5
return chain.from_iterable(combinations(l,n) for n in range(len(l)+1))
6
7
A = {1,2,3,4}
0 commit comments