class Person: def __init__(self,name,age,height): self.name=name self.age=age self.height=height def eat(self): print('Eating') def walk(self): print('Walking') def getname(self): return self.name p1=Person('Mansuri',18,4) print(p1.eat())
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more