How should I define the attributes of a class?
class Example:
def __init__(self,n,m):
self.n=n
self.m=m
or in this way:
class Example:
m=0
n=0
def __init__(self,n,m):
self.n=n
self.m=m
If I define an attribute outside the constructor, is it a static variable?