title: How to create function that returns all combinations of this list in Python?
body: <p>I have this kind of list:</p>
  
  <pre><code>[['I'],['want','love','like'],['cat',dog]]
  </code></pre>
  
  <p>and I want to create a function that can return all combinations of words in the lists like this:</p>
  
  <pre><code>[['I'],['want'],['cat']]
  [['I'],['love'],['cat']]
  [['I'],['like'],['cat']]
  [['I'],['want'],['dog']]
  [['I'],['love'],['dog']]
  [['I'],['like'],['dog']]
  </code></pre>
  
  <p>PS: The function must work with any <code>n</code> words</p>