Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new_list = []
- for i in lst1:
- for j in lst2:
- if i == j:
- new_list.append(i)
- new_list.sort()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement