I have REST API that receive arbitrary data which I sort and convert it into list of lists, e.g.
attributes = [ ['nike', 'adidas', 'salmon'], ['38'], ['blue', 'grey'] ]
What I want is to create new list of lists that each element in sub-lists mapped uniquely with others, like:
paths = [ ['nike', '38', 'blue'],
['nike', '38', 'grey'],
['adidas', '38', 'blue'],
['adidas', '38', 'grey'],
['salmon', '38', 'blue'],
['salmon', '38', 'grey'] ]
I appreciate your answers and suggestions to achieve that in most possible efficient way.