What is the difference in the following two examples?
#Example 1
class Foo:
var = None
def __init__(self):
self.var = 1
#Example 2
class Bar:
var = None
def __init__(self):
Foo.var = 1
How does var vary between the two examples?
Is Example 1 a static variable or is it an incorrect use of a variable declaration as a static variable?