title: Function() takes exactly 2 arguments (3 given)
body: <p>I am using python to call a method in one class that is in one file from a method in another class of other file </p>
  
  <p>Suppose my file is <code>abc.py</code> that contains</p>
  
  <pre><code>class data : 
  
           def values_to_insert(a,b):
                 ......
                  ......
  </code></pre>
  
  <p>another file is <code>def.py</code> </p>
  
  <pre><code>import abc
  class values:
        data=abc.data()
        def sendvalues():
            a=2
            b=3
            data.values(a,b)
  </code></pre>
  
  <p>When I run this file it gives an error:  <code>values() takes exactly 2 arguments (3 given)</code></p>