input: Write a function to search for a character in a given string. If the character is found return True else return False. If the given string or character is empty then return False.
  
  def search_char(input_str, char):
      if not input_str or not char:
          return False
      for ch in input_str:
          if ch == char:
              return True
      return False
  
  assert search_char("Hello", 'l') == True
  assert search_char("Hello", 'o') == True
  assert search_char("Hello", 'z') == False
  assert search_char("", 'l') == False
  assert search_char("Hello", '') == False
output: def search_char(input_str, char):
      if not input_str or not char:
          return False
      for ch in input_str:
          if ch == char:
              return True
      return False