Question 1
Consider the following Python class definition:
class Test:
x = 10
def __init__{self, x}:
self.$x = x
t1 = Test(20)
t2 = Test(30)
print(Test.x, t1.x, t2.x)$
Test.x refers to the class attribute x (value 10). t1.x and t2.x refer to instance attributes created in __init__{20 and 30}. Modifying instance x does not change class x.