human
Write me a the Python program 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:
Lets create a parent class which inherits grand_parent class, note we have used super().__init_(middle_name) to set middle name using parents function middle_name.
Can you write Python program for it?
assistant
#Here is the Python program you requested.

class parent(grand_parent):
    def __init__(self, middle_name, surname):
        print("parent init")
        self.__surname = surname
        super().__init__(middle_name)
    
    def middle_name(self):
        return self.middle_name