Skip to content

Commit 7eca215

Browse files
authored
Update subsets
1 parent d0980ff commit 7eca215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsets

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from itertools import chain, combinations
2-
def give_subsets(iterable):
2+
def give_subsets(a):
33

4-
l = list(iterable)
4+
l = list(a)
55
return chain.from_iterable(combinations(l,n) for n in range(len(l)+1))
66

77
A = {1,2,3,4}

0 commit comments

Comments
 (0)