class one :
def __init__(self,name_p1):
self.name1 = name_p1
def sayhay(self):
print(f"Hello {self.name1}")
def o (self):
print ("ggg")
class two(one) :
def __init__(self,name_p2):
one.__init__(self,name_p2)
#super().__init__(name)
self.name2 = name_p2
#print ("hay")
two1 = two ("hamdo")
#one1 = one("adnan")
(two1.sayhay())
To embed this project on your website, copy the following code and paste it into your website's HTML: