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 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 isAnagrams s:
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
