Write a function word_compare that takes two arguments (two strings). There are three possible return cases:
. Return the string Anagram if the two inputs are anagrams
• Return a two-tuple (a tuple with two items) if the two inputs are words but not anagrams
Return the string Those aren't strings! if either input is not a string.
>>> word_compare("rat", "tar")
Anagram'
>>> word_compare("hello", "goodbye")
('hello', 'goodbye')
>>> word_compare(22, "hello")
"Those aren't strings!"
We'll work through this problem in three parts:
Write a function in a python file