I am a beginner in Python. I know spaces play a significant role for compiling. So I have the following two classes in the same python script file:
class ClassA:
def __init__(self):
self.x = {}
def _methodA1():
# Something
def _methodA2():
# Something
class ClassB:
def _methodB1():
# Something
def _methodB2():
# Something
def MethodX():
print "Hello World"
(1) Which class MethodX belongs to?
(2) Can we say ClassB is an inner class of ClassA ?
(3) If MethodX belongs to ClassA, does it mean self.x is accessible via MethodX ?
MethodXdoesn't belong to a class since it is not indented under a class.