Write Python Program to print Common Letters in Two Input Strings


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

Solution

s1="Trump was the American President"
s2="Who is the American President now?"
a=list(set(s1)&set(s2))
print("The common letters are:")
for i in a:
    print(i)
	
	
	
	



List all Python Programs