i know i asked a lot of difficult questions lately, but i am curious about this code:
class exampleOne: def __init__(self): example_two = exampleTwo() print(example_two.x) class exampleTwo: def __init__(self): self.x = "hello world" example_one = exampleOne()
code for first question:
example_two = exampleTwo()
I create an instance of exampleTwo inside class exampleOne? This is possible? It seems to be.
code for second question:
the instance then give me access to the methods, member variables and everything i add to
self? Or do i understand this wrong?