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()
 
PREVIOUS NEXT
Tagged: #clear #elements #list #python
ADD COMMENT
Topic
Name
3+4 =