Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst = [int(i) for i in input().split()]
- lst.sort()
- new_lst = []
- for r in lst:
- if lst.count(r) > 1 and r not in new_lst:
- new_lst += [r]
- for x in new_lst:
- print(x, end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement