Files
  • main.py
main.py
1
2
3
4
5
import itertools

s=[1,2,3]
 
print([i for i in itertools.chain.from_iterable(itertools.combinations(s, r) for r in range(len(s)+1))])