Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

del method in python lists

l = ['Alice', 'Bob', 'Charlie', 'Bob', 'Dave']
print(l)
# ['Alice', 'Bob', 'Charlie', 'Bob', 'Dave']

l.remove('Alice')
print(l)
# ['Bob', 'Charlie', 'Bob', 'Dave']
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #del #method #python #lists
ADD COMMENT
Topic
Name
4+9 =