prints the return from printname which is None. Try the following code
Code:
class class1:
name='civil'
def printname(self,name):
print self.name
print name
print self.mark
return "returned from printname"
you=class1()
you.mark=100
print you.printname('shahram')
So you have to return something you want to print, or eliminate the print statement. You might want to look at this tutorial on functions which includes return statements.
Comment