I’m working on https://www.codecademy.com/courses/learn-python-3/lessons/introduction-to-strings/exercises/strings-in-conditionals-i
and the code SOLUTION is
def contains(big_string, little_string):
return little_string in big_string
def common_letters(string_one, string_two):
common =
for letter in string_one:
if (letter in string_two) and not (letter in common):
common.append(letter)
return common
ive seen a few codes like this- how come nothing is being printed to the module? I can’t really learn unless I can see an example if things being printed to the module but the solution doesn’t offer code with print. I tried to print the various variables but nothing is really working for me…
I’ve ran into this problem on the exercise before this and I couldn’t get the module to print- true or false… im a newbie at this and would like to just see the functions work so that they actually print something to the module?