1# function to check if two strings are
2# anagram or not
3def check(s1, s2):
4
5 # the sorted strings are checked
6 if(sorted(s1)== sorted(s2)):
7 print("The strings are anagrams.")
8 else:
9 print("The strings aren't anagrams.")
10
11# driver code
12s1 ="listen"
13s2 ="silent"
14check(s1, s2)