class Num:
def __init__(self,num):
self.n = num
I read that the __init__
method returns None
.When I perform a=Num(5)
, Num(5)
will call __init__
method of the class.But if __init__
returns None
then a
should reference nothing.But instead a
is referencing the object of Num
Class.How does it happen?So does __init__
return None
or the object of the class?