How can i obtain the list of list of combinations
combi=list()
for i in range(1,4):
combi.append(list(itertools.combinations([1,2,3],i)))
print(combi)
Results
[[(1,), (2,), (3,)], [(1, 2), (1, 3), (2, 3)], [(1, 2, 3)]]
desired output
[1],
[2],
[3],
[1,2],
[1,3],
[2,3],
[1,2,3]