Advertisement
here2share

# lists_difference.py

Feb 6th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # lists_difference.py
  2. # Getting difference between list
  3.  
  4. a = ['one',2,'three','five']
  5. b = [2,'five','six']
  6. c = list(set(a) - set(b)) # ['three','one']
  7. print c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement