class FooBar:
def __init__(self, value = 42):
self.somevar = value
f = FooBar('This is a constructor argument')
f.somevar
This is a constructor argument
How can the parameter value know what kind of data it's going to be given? Int, float, string, etc? thanks.