input: Write a python function to compare the lengths of two strings and return True if the first string is longer, otherwise return False.
  assert compare_strings("hello", "hi") == True
  assert compare_strings("cat", "elephant") == False
  assert compare_strings("apple", "apple") == False
output: def compare_strings(str1, str2):
      return len(str1) > len(str2)