Skip to content

Instantly share code, notes, and snippets.

@JohnsonLuu
Created July 1, 2020 04:29
Show Gist options
  • Save JohnsonLuu/1bd740c19dad906347bfae4b98ff866e to your computer and use it in GitHub Desktop.
Save JohnsonLuu/1bd740c19dad906347bfae4b98ff866e to your computer and use it in GitHub Desktop.
def contains(big_string, little_string):
if little_string in big_string:
return True
return False
def common_letters(string_one, string_two):
common_letters = []
for string_un in string_one:
if string_un in string_two and string_un not in common_letters:
common_letters.append(string_un)
return common_letters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment