Question: in python Write a function named in_both that takes two strings and returns one string. The returned string should contain any character that exists in
in python
Write a function named in_both that takes two strings and returns one string. The returned string should contain any character that exists in both the provided strings. The returned string should contain no duplicates. Your function should be case-insensitive.
s1 = 'onebigword'
s2 = 'andanother'
s3 = in_both(s1,s2)
print(s3)
would display
onerd
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
