Created
March 16, 2010 04:36
-
-
Save atiw003/333648 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
f = [1, 2, 3, 4, 5, 5, 5, 6] | |
set(f) | |
print list(set(f)) | |
#A set object is an unordered collection of distinct hashable objects. Common uses include membership testing, removing duplicates from a sequence, and computing mathematical operations such as intersection, union, difference, and symmetric difference. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment