i tried to use multiple function in class using init method. following problem occur
class Person1:
def __init__(self, name, age):
self.name = name
self.age = age
def say_hi(self):
print("hello", self.name)
def age(self):
print("age",self.age)
p = Person1('kashindra', 21)
p.say_hi()
p.age()
File "", line 16, in TypeError: 'int' object is not callable
ageinside of classPerson1self.ageand methoddef age(self)