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