Skip to content

Instantly share code, notes, and snippets.

@atiw003
Created March 16, 2010 04:36
Show Gist options
  • Save atiw003/333648 to your computer and use it in GitHub Desktop.
Save atiw003/333648 to your computer and use it in GitHub Desktop.
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