Question: Code must be in PYTHON # TO DO: Given two strings 51 and 52, check if both the strings are anagrams of each other. An
Code must be in PYTHON
# TO DO: Given two strings 51 and 52, check if both the strings are anagrams of each other. An Anagram z is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. For example, the word anagram itself can be rearranged into nag a ram, also the word binary into brainy, and the word adobe into abode. Ask the user to enter two strings. . Check if they are anagrams or not by comparing the lengths and the frequencies of letters in two strings Neither Python Counter object nor sorted() built-in function is allowed. Expected input/output: Enter two words: listen silent True Enter two words: listent sslient False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
