def common_letters(string_one, string_two):
for letter in string_one:
if (letter in string_two) and not (letter in common):
print (common_letters(“banana”, “cream”))
(also, which html thing do you use to indent?)
Brackets are for lists. You have a variable set to an empty list.
Use the “</>” to format code
To format code so it’s visible, either wrap it in single backticks for a small amount of code, or triple backticks on an otherwise blank line before and after for a large amount of code.
In general, your post will get a good answer if you’ve remembered to do the following:
Always search for existing answers first.
Provide as much information and context as possible.
Format your code.
Reference Additional Resources
Before Starting a Topic, Search for Existing Answers
Before you start a new topic, check existing posts and use Google to see if your questions have already been addressed. This will very often give you an immediate answer! Crypti…