- Code: Select all
class noname(object):
def something(self):
print 'Whatever'
class noname1(object):
def watever(self):
m = noname()
print 'abc ',m.something()
if __name__ == "__main__":
s = noname1()
s.watever()
it prints
abc Whatever
None
how do I get rid of the None that it prints? I am not suppose to have a return statement in the method something()
thanks




