Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove an element from a list in python

num = [1,2,3,7,4,5,6]
print("Before remove 7:", num)
num.remove(7)
print("After remove 7:", num)
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #remove #element #list #python
ADD COMMENT
Topic
Name
6+2 =