Created
January 28, 2014 20:02
-
-
Save diopib/8675165 to your computer and use it in GitHub Desktop.
Python Little Utilities
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
""" | |
python useful stuff | |
""" | |
def mutual_ex(a, b): | |
""" | |
return a list of element only in a or b | |
""" | |
return [i for i in a if i not in b] + [j for j in b if j not in a] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment