For the following example dictionary, is there a builtin method to get all unique combinations?
a = {
"a": ["a_1", "a_2"],
"b": ["b_1", "b_2"]
}
output:
[
["a_1", "b_1"],
["a_1", "b_2"],
["a_2", "b_1"],
["a_2", "b_2"]
]
For the following example dictionary, is there a builtin method to get all unique combinations?
a = {
"a": ["a_1", "a_2"],
"b": ["b_1", "b_2"]
}
output:
[
["a_1", "b_1"],
["a_1", "b_2"],
["a_2", "b_1"],
["a_2", "b_2"]
]