Advertisement
here2share

# list_differences.py

Jan 20th, 2020
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # list_differences.py
  2.  
  3. list_a = [1,2,3,4,5,6,7,8]
  4. list_b = [1,0,3,4,999,6,7,8]
  5.  
  6. for z in ['%d ::: %d'%(a,b) for a, b in zip(list_a, list_b) if a != b]:
  7.     print z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement