Write a function that checks whether two words are anagrams. Two words are anagrams if they contain the same letters. For example, silent and listen are anagrams. The header of the function is:def isAnagram(s1, s2):(Hint: Obtain two lists for the two strings. Sort the lists and check if two listsare identical.)Write a test program that prompts the user to enter two strings and, if theyare anagrams, displays is an anagram; otherwise, it displays is not ananagram.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here