I am trying to solve a Problem with the itertools
module in Python.
Unfortunately I couldn't solve it and I am looking for help here
Imagine we want to make a experiment, and we have 4 diffrent factors named:
[a,b,c,d]
Each of the factors can be changed around 3 different values for example:
a=[a1=10,a2=20,a3=30]
Now to see what the impact of the changed factor is I want only to change one value by one.
How can I get a list of all possible combinations?
So for this small example I am searching to create the following table:
[[a1,b1,c1,d1]
[a1,b1,c1,d2]
[a1,b1,c1,d3]
[a1,b1,c1,d4]
[a1,b1,c2,d1]
[a1,b1,c3,d1]
[a1,b1,c4,d1]
[a1,b2,c1,d1]
[a1,b3,c1,d1]
[a1,b4,c1,d1]
[a2,b1,c1,d1]
[a3,b1,c1,d1]
]