Skip to content

Instantly share code, notes, and snippets.

@arjun921
Created December 13, 2016 02:41
Show Gist options
  • Save arjun921/5bb3739191e0a68d5871d1b2509dc47e to your computer and use it in GitHub Desktop.
Save arjun921/5bb3739191e0a68d5871d1b2509dc47e to your computer and use it in GitHub Desktop.
a = [1,2,3,6,2,5,7,9,2,3,7,9,10,25,89]
b = [1,2,6,8,3,1,7,0,00,335,247,21,681,146]
a = set (a)
b = set (b)
print(a)
print(b)
temp=[]
for numbers in a:
if numbers in b:
temp.append(numbers)
print(temp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment