Skip to content

Instantly share code, notes, and snippets.

@kevin-weitgenant
Created August 2, 2016 13:17
Show Gist options
  • Save kevin-weitgenant/b4123dba58a5e8a1df20c87e50806ad9 to your computer and use it in GitHub Desktop.
Save kevin-weitgenant/b4123dba58a5e8a1df20c87e50806ad9 to your computer and use it in GitHub Desktop.
practicepython.org Exercise 05
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]
c = []
for x in a:
if x in b:
if x in c:
continue
c.append(x)
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment