Created
December 26, 2017 12:42
-
-
Save beta/a54e6e765731e257b2ba1e60cb99cdc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
temp = set() | |
output = [e for e in input if e not in temp and not temp.add(e)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment