Program to check if two Strings are Anagram or not in python.

Q.) What is an anagram?

Two strings are said to be anagram if we can form one string by arranging the characters of another string.

example:- Rama and Raam both are anagrams of each other because if we rearrange the letter of string “Rama” then we get “Raam” and vice-versa.

now the question is how can we identify whether the two strings are anagram or not? if two string contains the same count of the alphabet then it will be an anagram.

Leave a Comment

Your email address will not be published.