In this class there is no attribute called "a" then how x.a is considered ? Similarly what is "x.a.b", "x.a.b.c", "x.a.b.c.d", "x.a.b.c.d.e" and how are they considered ?Is b is an attribute of x.a in the case of "x.a.b" and c is a attribute of x.a.b in the case of "x.a.b.c" ? Explain breifly !!! I am totally confused
class Node :
def __init__(self, data = None, next = None) :
self.data = data
self.next = next
x = Node(50)
x.a = Node(40)
x.a.b = Node(30)
x.a.b.c = Node(20)
x.a.b.c.d = Node(10)
x.a.b.c.d.e = Node(5)
print(x.a.b.c.d.e.data)