Write a Python Program to prints Common Letters in Two Input Strings


Topic: Write a Python Program to prints Common Letters in Two Input Strings

Solution

s1='python'
s2='schoolofai'
a=list(set(s1)&set(s2))
print("The common letters are:")
for i in a:
    print(i)



List all Python Programs