This is a python beginner question:
class MyClass:
    variable = "test"
    def function(self):
        print("test")
X = MyClass()
Y = MyClass()
print (X.variable == Y.variable)    // expected true, works
print (X.variable is Y.variable)    // expected false, but return true; why?
Since there are two instances of the class, why is the second test with 'is' returning true since the variables should be difference instances?
 
     
    