Skip to content

Instantly share code, notes, and snippets.

@keikubo
Created May 26, 2012 15:31
Show Gist options
  • Save keikubo/2794332 to your computer and use it in GitHub Desktop.
Save keikubo/2794332 to your computer and use it in GitHub Desktop.
List Set Example
#!/usr/bin/env python
a = range(10)
b = [range(2),range(5)]
print a
print b
print list(set(a))
print list(set(b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment