Write a Python Program that Prints which Letters are in the First String but not in the Second


Topic: Write a Python Program that Prints which Letters are in the First String but not in the Second

Solution

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



List all Python Programs