1def intersection(lst1, lst2):
2 lst3 = [value for value in lst1 if value in lst2]
3 return lst3
4
5# Driver Code
6lst1 = [4, 9, 1, 17, 11, 26, 28, 54, 69]
7lst2 = [9, 9, 74, 21, 45, 11, 63, 28, 26]
8print(intersection(lst1, lst2))
1import numpy as np
2recent_coding_books = np.intersect1d(recent_books,coding_books)