Skip to content

Instantly share code, notes, and snippets.

@nadaa
Last active October 20, 2015 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nadaa/24a5f2da4e60267be025 to your computer and use it in GitHub Desktop.
Save nadaa/24a5f2da4e60267be025 to your computer and use it in GitHub Desktop.
a=[1,2,1,3,4,2,5,6,7,7,6]
b=[3,4,6,8,9,3,4]
a=set(a)
b=set(b)
c=list()
for i in a:
if i in b:
c.append(i)
print c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment