Как удалить весь список в Python
thislist = ["apple", "banana", "cherry"]
print(thislist)
del thislist
print(thislist)
Programmer of empires
thislist = ["apple", "banana", "cherry"]
print(thislist)
del thislist
print(thislist)
lst = ['i1', 'i2', 'i3']
lst.clear() #clears the contents of list
#lst[:] can also be used
#fastest is lst *= 0