class A: lst1=[1,2,3] lst2=[1,2,3] def __init__(self): self.lst1=10 self.lst2[2]=10 a=A() print(A.lst1) print(A.lst2) print(a.lst2)
[1,2,3]
[1,2,10]