class testClass(object): print "Creating New Classn" number=5 def __init__(self, string): self.string = string def printClass(self): print "Number = %d"% self.number print "String = %s"% self.stringtc = testClass("Five")tc.printClass()tc.number = 10tc.string = "Ten"tc.printClass()
Name (required)
email (will not be published) (required)
Website