0
Make a function that takes two strings as input, and outputs the common characters or letters that they share. (For example, Inp
def common(): string1 = "I love python" string2 = "I think python is cool" s1 = set(string1) s2 = set(string2) common_letters = s1 & s2 print(s1 & s2) common()
3 ответов
+ 8
Msawenkosi Zuma ,
what is your question ???
if this post is just to show your code, it is the wrong place. please use playground or your personal feed.
thanks for your understanding!
+ 2
Dude, your function doesn't take any parameters.
+ 1
@Lothar Make a function that takes two strings as input, and outputs the common characters or letters that they share.
NB: They must not return brackets and the quotation marks, it should just return the common letters with commas separating the letters.