input: Write a function in Python to search for a character in a given string. The function should return True if the character is found in the string, and False otherwise. If the given string is empty, return False.
  
  def search_char(input_str, char):
    for input_char in input_str:
      if input_char == 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("", 'a')==False
output: def search_char(input_str, char):
    for input_char in input_str:
      if input_char == char:
        return True
    return False