want to combine every element of a list with every element of n lists
<p>I'm going to try to explain this with an example, since I seem to have a problem explaining it to myself:</p>

<p>imagine I have a list of strings, and another list of lists of strings:</p>

<pre><code>words = ["hello", "goodbye", "foo"]
lists = [["111", "450", "nice"], ["can", "be", "of", "different", "sizes"]]
</code></pre>

<p>I want to combine 1 item of the first list with only 1 item of n lists in lists, example:</p>

<p>For n = 1:</p>

<pre><code>hello111
hello450
hellonice
hellocan
hellobe
...
</code></pre>

<p>or n = 2</p>

<pre><code>hello111can
hello111be
hello111of
...
</code></pre>

<p>n = 3 would not be possible in this scenario
I'm trying this in python with itertools using product or something but I can't seem to wrap my head around how to do this</p>

<p>[EDIT]
The answer I marked as correct is what I want but with permutations instead of combinations, Thanks a TON!</p>