Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytho. how to remove from a list

names = ['Boris', 'Steve', 'Phil', 'Archie']
names.pop(0) #removes Boris
names.remove('Steve') #removes Steve
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #remove #list
ADD COMMENT
Topic
Name
9+2 =