I have the following lists:
[1,2,3]
[1]
[1,2,3,4]
From the above, I would like to generate a list containing:
[[1,1,1],[1,1,2],[1,1,3],[1,1,4],
[2,1,1], [2,1,2], [2,1,3], [2,1,4],
[3,1,2], [3,1,3],[3,1,4]]
What is this process called?
Generate a factorial of python lists?
Is there a built-in library that does this?