Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Created May 8, 2016 08:34
Show Gist options
  • Save rjshekar90/bb3428d5101fffac2109afb7a10d4726 to your computer and use it in GitHub Desktop.
Save rjshekar90/bb3428d5101fffac2109afb7a10d4726 to your computer and use it in GitHub Desktop.
List Overlap Solutions
# List Overlap Solutions
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]
for element in a:
for x in b:
if element == x:
print element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment