Advertisement
biswasrohit20

harshit

Mar 14th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. new_list = []
  2. for i in lst1:
  3. for j in lst2:
  4. if i == j:
  5. new_list.append(i)
  6. new_list.sort()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement