title: multiprocessing: TypeError: 'int' object is not iterable
body: <p>I'm using the <code>multiprocessing</code> module in Python 3 but for some reason, it keeps throwing <code>TypeError: 'int' object is not iterable</code> when I run the program. This is what I did:</p>
  
  <pre><code>def main(i):
      global urlDepth
      global row
      global counter
      urlDepth = []
      row = 0
      counter = 0
      login(i)
      crawler(MENU_URL)
  
  
  if __name__ == '__main__':
      workers = 2
      processes = []
      for p_number in range(workers):
          p = Process(target=main, args=p_number)
          p.start()
          processes.append(p)
  
      for p in processes:
          p.join()
  </code></pre>
  
  <p>I don't understand why this is happening, could someone help me with this?</p>
  
  <p>Not a duplicate of <a href="https://stackoverflow.com/questions/8721600/typeerror-int-object-is-not-iterable">TypeError: 'int' object is not iterable</a> because it is the same error, yes, but it's of a different cause, please read the question/code before trying to mark this question as a duplicate.</p>