Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get all combinations from two lists python

a = ["foo", "melon"]
b = [True, False]
c = list(itertools.product(a, b))
>> [("foo", True), ("foo", False), ("melon", True), ("melon", False)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #combinations #lists #python
ADD COMMENT
Topic
Name
8+6 =