Reading the docs:
del: Deletion of a target list recursively deletes each target, from left to right.
Can you clarify why this cod
From the doc:
list.clear() Remove all items from the list. Equivalent to del a[:].
del a[:] equals a.clear()
del a[:]
a.clear()
You can try to print id(a) and id(c),they're different objects.
id(a)
id(c)