I have a list of arrays
any_array = [[0,1],[1,2,3],[2,6]]
I need to get all arrays where first number is any number from [0,1]
, second number is from [1,2,3]
and third number is from [2,6]
for example
[0,1,2]
,[1,3,6]
etc
How should I solve this problem in python?