human
What is a the Python code you requested given the following:
I am working on the file "Section 1 - Core Python/Chapter 09 - Classes & OOPS/02_02_Single_Inheritance.ipynb".
The first task is:
BallPen & InkPen both are initializing the parent class using super().__init(size, name) function. Now lets create few objects of both,
Can you write Python code for it?
assistant
#Here is the Python code you requested.

pb = BallPen(10, "Renolds", "Green")
print(pb.name)
pb.set_name("cello")
print(pb.name)
print(pb.__dict__)

class grand_parent:
    def __init__(self, middle_name):
        print("grand_parent init")
        self.__middle_name = middle_name
        
    def middle_name(self, middle_name):
        self.__middle_name = middle_name
        return self.__middle_name