title: How can i pass one module variable to another module in python?
body: <p>I will try below code but code.</p>
  
  <p>First module</p>
  
  <p>a.py</p>
  
  <pre><code>class A:
      def run:
          self.x=20
  </code></pre>
  
  <p>Second module</p>
  
  <p>b.py </p>
  
  <pre><code> from a import A
   class B:
       def run:
            c= a.A()
            c.run()
            Print c.x
  </code></pre>
  
  <p>But it’s giving me error.</p>
  
  <pre><code> typeError: __init__() takes exactly 2 arguments (1 given)
  </code></pre>