Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to clear all elements in a list python

# this clear whole elements from list
thislist = ["apple", "banana", "cherry"]
thislist.clear()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #elements #list #python
ADD COMMENT
Topic
Name
7+5 =