Created
July 1, 2020 04:29
-
-
Save JohnsonLuu/1bd740c19dad906347bfae4b98ff866e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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