NEEDS TO BE IN PYTHON:
(Anagrams)
Write a function that checks whether two words are anagrams. Twowords 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 andcheck if two lists are identical.)
Write a test program that prompts the user to enter two stringsand checks whether they are anagrams.
Sample Run 1
Enter a string s1: silent
Enter a string s2: listen
silent and listen are anagrams
Sample Run 2
Enter a string s1: split
Enter a string s2: lisp
split and lisp are not anagrams
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured