Delete lists in Python

Delete lists

>>> myList=[1,2,3]
>>> del myList
>>> myList
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'myList' is not defined

See also


Last update : 04/13/2019