Anagram - Python Code
Anagram - Python
Hi Friends
Welcome, today we are coded for anagram.
Welcome, today we are coded for anagram.
Anagram means "a word, phrase, or name formed by rearranging the letters of another, such as spar, formed from rasp."
arrangement doesn't matter.
let's Code...
CODE:
from collections import Counter
a = input('Enter string 1: ')
b = input('Enter string 2: ')
if Counter(a) == Counter(b):
print('Given String is Anagram')
else:
print('Given String is not Anagram')
-----
By
PyKAR
PyKAR
Comments
Post a Comment