title: How to pass arguments to python function whose first parameter is self?
body: <p>Take the following simplified example.</p>
  
  <pre><code>class A(object):
      variable_A = 1
      variable_B = 2
  
      def functionA(self, param):
          print(param+self.variable_A)
  
  print(A.functionA(3))
  </code></pre>
  
  <p>In the above example, I get the following error</p>
  
  <pre><code>Traceback (most recent call last):
    File "python", line 8, in &lt;module&gt;
  TypeError: functionA() missing 1 required positional argument: 'param'
  </code></pre>
  
  <p>But, if I remove the <code>self</code>, in the function declaration, I am not able to access the variables <code>variable_A</code> and <code>variable_B</code> in the class, and I get the following error</p>
  
  <pre><code>Traceback (most recent call last):
    File "python", line 8, in &lt;module&gt;
    File "python", line 6, in functionA
  NameError: name 'self' is not defined
  </code></pre>
  
  <p>So, how do I access the class variables and not get the param error here?
  I am using Python 3 FYI.</p>