Skip to content

Instantly share code, notes, and snippets.

@ls404
Last active June 23, 2017 07:37
Show Gist options
  • Select an option

  • Save ls404/8d42790834730de7d0b5fc3b0392d301 to your computer and use it in GitHub Desktop.

Select an option

Save ls404/8d42790834730de7d0b5fc3b0392d301 to your computer and use it in GitHub Desktop.
Find dublicates in two python lists.Easy but not effective solution
def dub(li, li1: list):
#find dublicates in two list, easy but not effective solution
print(set(li) & set(li1))
dub(["a","b","c","c","d","d","c","f","l"],["a","b","a"])
@ls404
Copy link
Author

ls404 commented Jun 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment