Skip to content

Instantly share code, notes, and snippets.

@codyhan94
Created October 28, 2013 05:14
Show Gist options
  • Save codyhan94/7191729 to your computer and use it in GitHub Desktop.
Save codyhan94/7191729 to your computer and use it in GitHub Desktop.
lst1 = list(str1)
lst2 = list(str2)
for char in lst1:
if char in lst2:
count += 1
lst2.remove(char)
return count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment