Created
May 8, 2016 08:34
-
-
Save rjshekar90/bb3428d5101fffac2109afb7a10d4726 to your computer and use it in GitHub Desktop.
List Overlap Solutions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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