title: python for large data processing
body: <p>I relatively new to python, and have been able to answer most of my questions based on similar problems answered on forms, but I'm at a point where I'm stuck an could use some help.</p>
  
  <p>I have a simple nested for loop script that generates an output of strings. What I need to do next is have each grouping go through a simulation, based on numerical values that the strings will be matched too.</p>
  
  <p>really my question is how do I go about this in the best way? Im not sure if multithreading will work since the strings are generated and then need to undergo the simulation, one set at a time. I was reading about queue's and wasn't sure if they could be passed into queue's for storage and then undergo the simulation, in the same order they entered the queue. </p>
  
  <p>Regardless of the research I've done I'm open to any suggestion anyone can make on the matter. </p>
  
  <p>thanks!</p>
  
  <p>edit: Im not look for an answer on how to do the simulation, but rather a way to store the combinations while simulations are being computed</p>
  
  <p>example</p>
  
  <pre><code>X = ["a","b"]
  Y = ["c","d","e"]
  Z= ["f","g"]
  
  for A in itertools.combinations(X,1):
      for B in itertools.combinations(Y,2):
          for C in itertools.combinations(Z, 2):
  
          D = A + B + C
          print(D)
  </code></pre>