title: How can functions access variables passed to other functions?
body: <p>Basically I have a application that sends a value to another function(located in another file) and I want other functions(within that file) to have access(if it matters, its read access) to that variable.</p>
  
  <p>For example:</p>
  
  <pre><code>def function1(pricelist):
       #do something
  </code></pre>
  
  <p>.... other functions    </p>
  
  <pre><code>def fucntion200():
      #Does something else but needs to refer to that pricelist that was provided to function1
  </code></pre>
  
  <p>I tried doing a pricelist = pricelist in function1 so maybe if I declare it in the file it'll be avail, but that didn't work and when I make it global I get an error saying its local and global. </p>
  
  <p>I have read: <a href="https://stackoverflow.com/questions/423379/using-global-variables-in-a-function-other-than-the-one-that-created-them">Using global variables in a function other than the one that created them</a> and don't think it fully applies(or I have so far been unable to).</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>