Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove the element in list

my_list = [12, 'Siya', 'Tiya', 14, 'Riya', 12, 'Riya']
my_list.remove(12) # it will remove the element 12 at the start.
print(my_list)
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #python #remove #element #list
ADD COMMENT
Topic
Name
8+3 =