Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to clear a list in python

yourlist = [1,2,3,4,5,6,7,8]
del yourlist[:]
 
PREVIOUS NEXT
Tagged: #clear #list #python
ADD COMMENT
Topic
Name
7+1 =