Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to delete an item from a list python

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

myList.pop(2) # myList now equals ['Item', 'Item', 'Item']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #item #list #python
ADD COMMENT
Topic
Name
8+1 =