I need to generate ALL possible combinations of EACH element in each list of strings
list1 = ['The girl', 'The boy']
list2 = ['wears', 'touches', 'tries']
list3 = ['a red sweater', 'a blue sweater', 'a yellow sweater', 'a white sweater']
So the result is a list of a string combining each element combines with each other element:
The girl wears a red sweater
The boy wears a red sweater
The girl touches a red sweater
The boy touches a red sweater
The girl wears a blue sweater
The boy wears a yellow sweater
(ETC...)
I don't particularly care about the order of the output as long as ALL combinations are obtained.
From my research I guess "permutation" would be a solution but I only found several answers regarding permutations of lists of numbers, or combinations of each letter in a string. None of those things is what I need. I need to combine blocks of text arranged in lists.
How can I create a long list of sentences containing all of the combinations of the different elements in each one of the lists of strings?
Thank you