Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created June 1, 2020 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/4761eaf06e3672ef538410a61fd0cee7 to your computer and use it in GitHub Desktop.
Save codecademydev/4761eaf06e3672ef538410a61fd0cee7 to your computer and use it in GitHub Desktop.
Codecademy export
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