Assume I have a dictionary with any number of elements, for example here we have 3 elements.
{'key1':[1,2], 'key2':[3,4,5], 'key3':[6,7]}
I want to take one number at time from each list in the dictionary to generate this list:
[[1,3,6],[1,3,7],[1,4,6],[1,4,7],[1,5,6],[1,5,7],[2,3,6],[2,3,7],[2,4,6],[2,4,7],[2,5,6],[2,5,7]]
How to perform this type of recursion in python?