title: Trying to capture raw_input to use later
body: <p>I am trying to make a def function that uses ra_input, and the data is to be used outside the function. The function is to be called many times.</p>
  
  <pre><code>var1=""
  var2=""
  theresult=""
  def getstuff():
      theresult = raw_input("Enter your result")
  print "Here is the result:"
  
  print theresult
  </code></pre>
  
  <p>no result appears.
  Tried return, and tried return(), and tried return result, and tried return(result),
  anyone help??
  Also why the box below unformatted when I type the question??</p>