How can I pass dictionary to a function in python? : <p>I am trying to pass dictionary to a function in python but it shows me error. </p>

<pre><code>class stud:
    def method(**arg):
        print(arg)

dict1 = {1:"abc",2:"xyz"}
a = stud()
a.method(dict1)
</code></pre>

<p>Can you tell me were I goes wrong or the right way to pass dictionary to a function? </p>
