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