input: Write a function in Python to search for a character in a given string. If the character is found, the function should return True, otherwise return False.
  
  
  def search_char(input_str, char):
      for c in input_str:
          if c == char:
              return True
      return False
  
  
  ### Test Cases:
  - assert search_char("Hello", 'l') == True
  - assert search_char("World", 'o') == True
  - assert search_char("Python", 'z') == False
  - assert search_char("", 'a') == False
output: def search_char(input_str, char):
      for c in input_str:
          if c == char:
              return True
      return False