# corey b. holstege
# 2018-09-12
# https://www.geeksforgeeks.org/10-essential-python-tips-tricks-programmers/

# imports
from collections import Counter

# functions
def is_anagram(str1, str2):
	return Counter(str1) == Counter(str2)

print("This will tell you if two words are anagrams.")

word1 = input("Input the first word: ")
word2 = input("Input the second word: ")

result = str( is_anagram(word1, word2))
#if result = True, convert to Yes
#if result = Fales, convert to No

print("Are the two words anagrams? ", is_anagram(word1, word2))

#print(type(word1))
#print(type(word2))