Skip to content

Instantly share code, notes, and snippets.

@diopib
Created January 28, 2014 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diopib/8675165 to your computer and use it in GitHub Desktop.
Save diopib/8675165 to your computer and use it in GitHub Desktop.
Python Little Utilities
"""
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