Python Assignment by 124103023
Python Assignment by 124103023
def remove_duplicates(s):
seen = set()
result = ""
return result
def isanagram(s1,s2):
if(len(s1)!=len(s2)):
return False
return sorted(s1)==sorted(s2)
enter the first string:gum
s1=input("enter the first string:")
s2=input("enter the second string:")
enter the second string:mug
yes it is a anagram
if isanagram(s1,s2):
print("yes it is a anagram")
else:
print("no it is not anagram")