Question: Using python3.7.0 to write 3 problems . Please use functiondef to write !thanks! 51. Anagrams An anagram of a word or phrase is another word
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 Enter grade 1:90 Enter grade 2:75 Enter grade 3: 85 Enter grade 4: 72 Enter grade 5: 80 Range: 10 Average: 85 Enter the first word or phrase: Elvis Enter the second word or phrase: 1ives Are anagrams FIGURE 4.14 Possible outcome Exercise 52. FIGURE 4.13 Possible outcome of Exercise 51
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
