title: Assigning return value of function to a variable, with multiprocessing? And a problem about IDLE?
body: <p>I'm trying to understand multiprocessing in python.</p>
  
  <pre><code>from multiprocessing import Process
  
  def multiply(a,b):
      print(a*b)
      return a*b
  
  if __name__ == '__main__':
      p = Process(target= multiply, args= (5,4))
      p.start()
      p.join()
      print("ok.")
  </code></pre>
  
  <p>In this codeblock, for example, if there was an variable that called "result". How can we assign return value of multiply function to "result"?</p>
  
  <p>And a little problem about IDLE: when i'm tried to run this sample with Python Shell, it doesn't work properly? If i double click .py file, output is like that:</p>
  
  <pre><code>20
  ok.
  </code></pre>
  
  <p>But if i try to run this in IDLE:</p>
  
  <pre><code>ok.
  </code></pre>
  
  <p>Thanks...</p>