





'''simple docstring'''

from __future__ import annotations

def     __magic_name__							(				__UpperCAmelCase				,						__UpperCAmelCase   )    ->       bool:

   '''simple docstring'''







   if len(__UpperCAmelCase   ) == 0:
      return False
   __SCREAMING_SNAKE_CASE   				=							len(__UpperCAmelCase   ) // 2
   if a_list[midpoint] == item:
      return True
   if item < a_list[midpoint]:
      return binary_search(a_list[:midpoint]				,						__UpperCAmelCase   )
   else:
      return binary_search(a_list[midpoint + 1 :]				,						__UpperCAmelCase   )


if __name__ == "__main__":
    a   	=    input("Enter numbers separated by comma:\n").strip()
    a   	=    [int(item.strip()) for item in user_input.split(",")]
    a   	=    int(input("Enter the number to be found in the list:\n").strip())
    a   	=    "" if binary_search(sequence, target) else "not "
    print(F'''{target} was {not_str}found in {sequence}''')












'''simple docstring'''

from PIL import Image

def     __magic_name__							(				__UpperCAmelCase				,						__UpperCAmelCase   )    ->       Image:

   '''simple docstring'''







   __SCREAMING_SNAKE_CASE   				=							(259 * (level + 255)) / (255 * (259 - level))

   def contrast(__UpperCAmelCase   ) -> int:
      return int(128 + factor * (c - 128)   )

   return img.point(__UpperCAmelCase   )


if __name__ == "__main__":
    # Load image
    with Image.open("image_data/lena.jpg") as img:
        # Change contrast to 170
        a   	=    change_contrast(img, 170)
        cont_img.save("image_data/lena_high_contrast.png", format="png")





