Advertisement
ugo_nwa

domino2

May 27th, 2020
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1.  
  2. def removeSeenKeys(oldList, newList):
  3.     newListCopy = newList.copy()
  4.     for newItem in newList:
  5.         for oldItem in oldList:
  6.             if newItem == oldItem:
  7.                 newListCopy.remove(oldItem)
  8.     return newListCopy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement