Contact: aviboots(AT)netvision.net.il
39,861 questions
51,782 answers
573 users
lst1 = [1, 2, 3, 4, 6] lst2 = [2, 3, 4, 5, 7] lst_common = [a for a in lst1 for b in lst2 if a == b] print(lst_common) ''' run: [2, 3, 4] '''