Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst = [int(i) for i in input().split()]
- lst.sort()
- c = 1
- if len(lst) == 1:
- print('')
- else:
- for j in range(0, len(lst) - 1):
- if lst[j] == lst[j+1]:
- c += 1
- else:
- print(lst[j], end = ' ')
- c = 1
- if lst[-1] == lst[-2]:
- print(lst[-1], end = ' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement