-
-
Save codecademydev/4761eaf06e3672ef538410a61fd0cee7 to your computer and use it in GitHub Desktop.
Codecademy export
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): | |
return little_string in big_string | |
def common_letters(string_one, string_two): | |
S=[] | |
for i in string_one: | |
if (i in string_two) ^ (i in S): | |
S+=[i] | |
return S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment