Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 24, 2015 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popey456963/9760b67c96a1adf9c4b1 to your computer and use it in GitHub Desktop.
Save popey456963/9760b67c96a1adf9c4b1 to your computer and use it in GitHub Desktop.
Removing Duplicates
l=[]
for i in range(int(input())):l.append(input())
y = [x for i,x in enumerate(l) if x not in l[:i]]
for i in y:print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment