I have a list of elements like:
x = ['A, B', '2', '3', 'Jan, Feb']
# ^ ^
# comma separated single string
I want to transform this list into a list of lists with all the combinations of each element that is comma separated so that it looks like:
[['A', '2', '3', 'Jan'], ['A', '2', '3', 'Feb']
['B', '2', '3', 'Jan'], ['B', '2', '3', 'Feb']]
What is the elegant way to achieve this using Python's in-built functions/libraries?