#program for anagram
'''str1=input("enter the first word:")
list1=[]
str2=input("enter the second word:")
list2=[]
if len(str1)!=len(str2):
    print("The length of the words are unequal")
else:
    for ele in str1:
        ascval=ord(ele)
        list1.append(ascval)
        list1.sort()
    print(list1)
for ele in str2:
    ascval=ord(ele)
    list2.append(ascval)
    list2.sort()
print(list2)
for ele in range (0,len(list1)):
    if list1[ele]!=list2[ele]:
        print("the words are not anagram")
        break
else:
    print("the words are anagram")'''
#another method string sorting
'''str1="listen"
list1=list(str1)
list1.sort()
print(list1)'''





    



       
    
