Skip to content

Instantly share code, notes, and snippets.

@ls404
Created June 23, 2017 07:39
Show Gist options
  • Select an option

  • Save ls404/59858be371a6adab90d2b6c03c7ba6ef to your computer and use it in GitHub Desktop.

Select an option

Save ls404/59858be371a6adab90d2b6c03c7ba6ef to your computer and use it in GitHub Desktop.
>>> a = [1, 2, 3, 4, 5]
>>> b = [9, 8, 7, 6, 5]
>>> set(a) & set(b)
{5}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment