Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete all elements in list python

mylist = [1, 2, 3, 4]
mylist.clear()

print(mylist)
# []
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #delete #elements #list #python
ADD COMMENT
Topic
Name
4+1 =