input: Write a function to search for a character in a given string. If the character is found, return True; otherwise, return False. If the input string is empty, return False.
  def search_char(input_str, char):
      for c in input_str:
          if c == char:
              return True
      return False
  
  assert search_char("Hello", 'l') == True
  assert search_char("Hello", 'o') == True
  assert search_char("Hello", 'x') == False
  assert search_char("", 'l') == False
output: def search_char(input_str, char):
      for c in input_str:
          if c == char:
              return True
      return False