Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: var_dump in python 
Python :: python A string float numeral into integer 
Python :: files python 
Python :: get index of dataframe 
Python :: get files in directory 
Python :: python3.8 
Python :: any python 
Python :: python oauthlib 
Python :: sort a dictionary by value then key 
Python :: list in one line of text in python 
Python :: seaborn modificar o tamanho dos graficos 
Python :: defaultdict python 
Python :: Identify Null and NAN python 
Python :: python insert sorted 
Python :: check word in list 
Python :: print output 
Python :: stack program in python3 
Python :: Get more than one longest word in a list python 
Python :: 16 bit floating point numpy 
Python :: len of iterator python 
Python :: move files in python 
Python :: pandas aggregate dataframe 
Python :: return dataframe as csv flask 
Python :: merge two sorted lists into one sorted list 
Python :: the shape of your array numpy 
Python :: add item to tuple python 
Python :: django check if get parameter exists 
Python :: Converting (YYYY-MM-DD-HH:MM:SS) date time 
Python :: python filter numbers from list 
Python :: gevent with flask 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =