Ml assig 0 prob 8

In Q8, how can we make the x at 2nd index of b=0?

Hello @yashikakhurana00,

I hope this is the code that you are referring to,

class A():
    x = 1
a = A()
print(a.x)
b = [A()] * 10
for ix in b:
    print(ix.x)
b[2].x = 5
for ix in b: 
    print(ix.x)

So what exactly you want to do here?