Posted on 26th April 2024
Just go through this simple example which might help you
class human(object):
def init(me,my_name):
me.my_name=my_name
def info(me)
print "My name is {0}, I am a{1}".format(me.my_name,me.__class__.__my_name__) bob = human(name='Angel')
bob.info()
Output:
My name is Angel, I am a human
STILL GOT QUERIES?