class NAME(object):
def __init__(self,names):
self.names = names
def __repr__(self):
name = self.names.upper()
return name
Name('David')
class name(object):
def __init__(self,names):
self.names = names
def __repr__(self):
name = self.names.lower()
return name
string = NAME('David')
string1 = name(str(string))
string1
Comments
Leave a comment