Guest User

Untitled

a guest
Jul 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. l1 = [1,2,6,8]
  2. l2 = [2,3,5,8]
  3.  
  4. l3 = [x for x in l1 if x not in l2] # l3 will contain [1, 6]
Add Comment
Please, Sign In to add comment