Created
September 18, 2014 02:02
-
-
Save SZanlongo/89e4cca62421e552b5e5 to your computer and use it in GitHub Desktop.
Remove duplicates from a List
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
# https://stackoverflow.com/questions/691946/short-and-useful-python-snippets | |
L = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] | |
print list(set(L)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment