title: How can I have a function run within another function, but evaluate from different lists in each function?
body: <p>I am using one function to do the testing (func1) and the other two functions have different x lists.</p>
  
  <p>What I am attempting to do is have the function refer to different x lists for different functions (func2 and func3).  Is there anyway func1 can refer to different x lists within func2 and func3.</p>
  
  <pre><code>def func1(letter):
  
      if letter in x:
          print True
  
  def func2(letter):
      x = [a,b,c,d,e]
  
      return func1
  
  def func2(letter):
      x = [e,d,c,b,a]
  
      return func2
  </code></pre>