Form all possible strings in 2 level lists
<p>I have a two-level list like this :</p>

<pre><code>[['Demonstrative-Pronoun', 'Personal-Pronoun', 'Adjective', 'Noun', 'Noun', 'Indefinite-Pronouns'], ['Verb', 'Adjective', 'Adverb', 'Noun', 'Noun'], ['Verb', 'Verb', 'Verb', 'Verb', 'Adjective', 'Noun', 'Noun', 'Verb'], ['Verb', 'Verb', 'Verb', 'Verb', 'Verb', 'Verb', 'Noun']]
</code></pre>

<p>I want to form all possible strings from these lists like :</p>

<ol>
<li>Demonstrative-Pronoun Verb Verb Verb</li>
<li>Demonstrative-Pronoun Adjective Verb Verb
and so on</li>
</ol>

<p>Is there a quicker way in python to do this or any quick way to? This list is hard-coded but it may actually contain any number of elements and sub-elements</p>

<p>Thanks!</p>
