input: Write a function that takes two strings and returns whether they are anagrams. The function should return True if the two strings are anagrams, and False otherwise. If either of the strings is empty, the function should return False.
  
  assert is_anagram("abcd", "cbda")==True
  assert is_anagram("silent", "listen")==True
  assert is_anagram("hello", "world")==False
  assert is_anagram("", "nonempty")==False
  assert is_anagram("empty", "")==False
output: def is_anagram(str1, str2):
      if str1 == "" or str2 == "":
          return False
      return sorted(str1) == sorted(str2)