Question: Use python and write code for problem. 51. Anagrams An anagram of a word or phrase is another word or phrase that uses the same
Use python and write code for problem.


51. Anagrams An anagram of a word or phrase is another word or phrase that uses the same letters with the same frequency. Punctuation marks, case, and spaces are ignored Some examples of anagram pairs are "angered "enraged" and "A gentleman" "Elegant man". Write a program that requests two words or phrases as input and determines if they are anagrams of each other. See Fig. 4.13. The program should use a Boolean valued function with header def areAnagrams (stringl string2) that returns True when the two strings are anagrams, and otherwise returns False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
