title: How to create a generator of tuples whose values change at different times
body: <p>I am trying to generate a generator where the tuple values will be coming from 2 lists. And what I intend is to run through all the values of the first list for each value of the second list. For instance, given these two lists:</p>
  <pre><code>list1 = [1,2,3]
  list2 = [4,5,6]
  </code></pre>
  <p>I want to get this:</p>
  <pre><code>((1,4), (2,4), (3,4), (1,5), (2,5), (3,5), (1,6), (2,6), (3,6))
  </code></pre>
  <p>What I tried as a test was:</p>
  <pre><code>parameters = ((value1, value2) for value1, value2 in zip(list1, list2))
  </code></pre>
  <p>But of course this does not give me what I want, so my question is how can I change <code>parameters</code> to get the output I want?</p>