title: How to use miltiprocessing for loop?
body: <p>I'm trying to understand how I can to realize multiprocessing in my case.
  I have two functions: <em>def all_url()</em> and <em>def new_file()</em>. The first one returns a list which contains a lot of elements. The second one uses this list for 'for' loop. I want to make multiprocessing for second function <em>new_file()</em> because list which returns from <em>all_url()</em> is too big.</p>
  
  <p>Example of code:</p>
  
  <pre><code>def all_url():
     #Here I append elements to urllist
      return urllist
  
  def new_file():
      for each in all_url():
        #There's a lot of code. Each iteration of loop creates a new html file.
  
  new_file()
  </code></pre>