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 www.edureka.co #
 
PREVIOUS NEXT
Tagged: #delete #item #list #python
ADD COMMENT
Topic
Name
4+2 =