SHARE
TWEET

Untitled

a guest Sep 18th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s = input()
  2. mn = set()
  3. mnn = set()
  4. for i in s:
  5.     if i not in mn:
  6.         mn.add(i)
  7. for i in s:
  8.     if i in mn and i not in mnn:
  9.         print(i, end = '')
  10.         mnn.add(i)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top