title: Python use variable in another class
body: <p>I am new in Python, and I would like to know: Is possible use one variable in another class? </p>
  
  <p>For example:</p>
  
  <pre><code>class Hello:
  
      def function_a(self):
          x = 1
  
  
  class World:
  
      def function_b(self):
          print(x)
  
  
  a = Hello()
  b = World()
  a.function_a()
  b.function_b()
  </code></pre>
  
  <p>How can I share "x" between classes ?</p>