Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

find common elements in two lists python

list1 = [1,2,3,4,5,6]
list2 = [3, 5, 7, 9]
list(set(list1).intersection(list2))
Comment

PREVIOUS NEXT
Code Example
Python :: flask minimul app 
Python :: python toast notification 
Python :: conditional row delete pandas 
Python :: django previous url 
Python :: set axis labels python 
Python :: cv2 crop image 
Python :: shutdown/restart/hibernate/logoff windows with python 
Python :: python write text file 
Python :: python matplotlib log scale 
Python :: django model specify table name 
Python :: dataframe memory usage 
Python :: save plot as image python 
Python :: python reimport py file 
Python :: instal cython 
Python :: python easter eggs 
Python :: linux python installation wheel 
Python :: python get day name 
Python :: s3fs download file python 
Python :: python elif invalid syntax 
Python :: Tk.destroy arguments 
Python :: who is a pythonista 
Python :: inverse matrix python 
Python :: python how to flatten a list 
Python :: import csv file using pandas 
Python :: how to search for a specific file extension with python 
Python :: install python 3.9 ubuntu 
Python :: save file python tkinter 
Python :: majority in array python 
Python :: save numpy arrayw with PIL 
Python :: install python 3.9 linux 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =