Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to delete list python

# delete by index
a = ['a', 'b', 'c', 'd']
a.pop(0)
print(a)
['b', 'c', 'd']
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #delete #list #python
ADD COMMENT
Topic
Name
1+8 =