Question: Question 0 9 ( 3 points ) Write a function that checks whether two words are anagrams. Two words are anagrams if they contain the

Question 09(3 points)
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):
Write a main function that prompts the user to enter two strings and, if they are anagrams, displays is an anagram; otherwise, it displays is not an anagram. Do not use method sort or lists.
Here are sample runs:
Enter the first string: silent
Enter the second string: listen
silent and listen are anagram.
Enter the first string: spam
Enter the second string: slam
spam and slam are not anagram.
Question 0 9 ( 3 points ) Write a function that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!