Skip to content

Instantly share code, notes, and snippets.

@AtufaShireen
Created September 6, 2019 18:44
Show Gist options
  • Save AtufaShireen/11b1e1b5ea3510e9c6062e0916edec94 to your computer and use it in GitHub Desktop.
Save AtufaShireen/11b1e1b5ea3510e9c6062e0916edec94 to your computer and use it in GitHub Desktop.
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
print(set([i for i in a if i in b]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment