Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to delete an item from a list python

myList = ['Item', 'Item', 'Delete Me!', 'Item']

del myList[2] # myList now equals ['Item', 'Item', 'Item']
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #delete #item #list #python
ADD COMMENT
Topic
Name
6+3 =