Is there a possibility in python to call a classmethod out of the constructor?
I have a method in a class and want to call it while creating a new element.
Is it possible?
def __init__(self, val1, val2):
if (val1 == 5) and (val2 == 2):
function5_2(self)
def function5_2(self):
(arguments)
Yes you can do it:
Output: