Is the memory really reclaimed when the reference count is zero?

63 Views Asked by At
l = [1000, 2000, 3000]
print(l)
del l
for i in range(5):
    print('Hello')

So is the memory of the 'list' object gets immediately freed after printing before even the for loop starts executing?

0

There are 0 best solutions below