Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

#remove a sublist from a list-use remove method

#remove a sublist from a list-use remove method
l1 = [10,20,30,40,50,60]
s1 = [30,40,50]
for i in s1:
  l1.remove(i)
print(l1)
 
PREVIOUS NEXT
Tagged: #sublist #remove #method
ADD COMMENT
Topic
Name
3+5 =