Skip to content

Instantly share code, notes, and snippets.

@sumon328
Created August 16, 2020 15:48
Show Gist options
  • Save sumon328/b66699c695eeb99dd0429b50d1333f78 to your computer and use it in GitHub Desktop.
Save sumon328/b66699c695eeb99dd0429b50d1333f78 to your computer and use it in GitHub Desktop.
a=a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b=b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
c=[]
for item in a:
if item in b:
if item not in c:
c.append(item)
print (c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment