Created
May 26, 2012 15:31
-
-
Save keikubo/2794332 to your computer and use it in GitHub Desktop.
List Set Example
This file contains hidden or 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
#!/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