Function definition in Python
<p>I am new to Python. I was trying to define and run a simple function in a class.</p>

<p>Can anybody please tell me what's wrong in my code:</p>

<pre><code>class A :
    def m1(name,age,address) :
     print('Name --&gt;',name)
     print('Age --&gt;',age)
     print('Address --&gt;',address)


&gt;&gt;&gt; a = A()
&gt;&gt;&gt; a.m1('X',12,'XXXX')
Traceback (most recent call last):
  File "&lt;pyshell#22&gt;", line 1, in &lt;module&gt;
    a.m1('X',12,'XXXX')
</code></pre>

<p>I am getting below error <br>
<strong>TypeError: m1() takes exactly 3 positional arguments (4 given)</strong></p>
