class class1(): def setdata(self,value1, value2): self.data = value1+value2 def display(self): print(self.data)
For the above code, when I
Try defining a default argument, like so.
class class1(): def setdata(self,value1, value2='000'): ...