Skip to content

Instantly share code, notes, and snippets.

@kevin-weitgenant
Created August 4, 2016 19:06
Show Gist options
  • Save kevin-weitgenant/a249d81be6e67197e0657a82c67d1042 to your computer and use it in GitHub Desktop.
Save kevin-weitgenant/a249d81be6e67197e0657a82c67d1042 to your computer and use it in GitHub Desktop.
practicepython.org Exercise 10
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 = list({x for x in a if x in b})
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment