I am new in Python, and I would like to know: Is possible use one variable in another class?
For example:
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()
How can I share "x" between classes ?