DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+1 =
Submit