Advertisement
sarakha123

List Remove Duplicates

Nov 18th, 2018
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
  2. b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,55,40,20,13]
  3. c=[]
  4.  
  5. for j in b:
  6.     if j not in a:
  7.         c.append(j)
  8.  
  9. for i in a:
  10.     if i not in b:
  11.         c.append(i)
  12.  
  13. print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement