title: Accessing a parameter passed to one function in another function
body: <p>I have two functions:</p>
  
  <pre><code>def f1(p1=raw_input("enter data")):
      ...do something
  
  def f2(p2=raw_input("enter data")):
      ...do something else
  </code></pre>
  
  <p>p1 and p2 are the same data, so I want to avoid asking for the input twice. Is there a way I can pass the argument supplied to f1 to f2 without asking for it again? Ideally I would be able to use something like you would in a class. Like <code>f1.p1</code>Is this possible?</p>
  
  <p>EDIT: To add some clarity, I looked into using the ** operator to unpack arguments and I'm aware that using the main body of the program to access the arguments is cleaner. However, the former does not match what I'm trying to do, which is gain a better understanding of what is accessible in a function. I also looked at using the <code>inspect</code> and <code>locals</code>, but these are for inspecting arguments within the function, not outside.</p>