input: Write a function to determine if two given strings are anagrams of each other. If they are, return True; otherwise, return False. If either string is empty, return False.
  
  def is_anagram(str1, str2):
      if len(str1) == 0 or len(str2) == 0:
          return False
      return sorted(str1) == sorted(str2)
  
  assert is_anagram("abcd", "cbda")==True
  assert is_anagram("listen", "silent")==True
  assert is_anagram("hello", "world")==False
  assert is_anagram("", "something")==False
  assert is_anagram("triangle", "integral")==True
output: def is_anagram(str1, str2):
      if len(str1) == 0 or len(str2) == 0:
          return False
      return sorted(str1) == sorted(str2)