I do not know whether to call it combination or permutation, so the question can be edited regarding your comment in question.
I have a list as below:
[
    ["a"],
    ["b", "c"],
    ["d", "e", "f"]
]
I want this to output as:
[
    "abd",
    "acd",
    "abe",
    "ace",
    "abf",
    "acf"
]
My first priority is to make this with built-in tools or by hand, not with other scientific modules. However, if there is no way, scientific modules might be used.
Environment
- python 3.5.1