Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s=[int(i) for i in input().split()]
- i=0
- code=''
- while i<len(s):
- if s[i] in s[i+1::]:
- if str(s[i]) not in code:
- code+=str(s[i])+' '
- i+=1
- print(code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement