Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete all elements in list python

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

print(mylist)
# []
 
PREVIOUS NEXT
Tagged: #delete #elements #list #python
ADD COMMENT
Topic
Name
3+1 =