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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!