DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get all subsets of a list python
a_set = {"a", "b", 1, 2} data = itertools.combinations(a_set, 2) subsets = set(data) print (subsets)
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#subsets
#list
#python
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit