





from __future__ import annotations

from cmath import sqrt






def       _A  (      lowerCamelCase							, lowerCamelCase							, lowerCamelCase   ):

   if a == 0:
      raise ValueError("Coefficient 'a' must not be zero."   )
   a__	:						Any      		=  b * b - 4 * a * c

   a__	:						str      		=  (-b + sqrt(lowerCamelCase   )) / (2 * a)
   a__	:						Union[str, Any]      		=  (-b - sqrt(lowerCamelCase   )) / (2 * a)

   return (
       root_a.real if not root_a.imag else root_a,
       root_a.real if not root_a.imag else root_a,
   )






def       _A  (      ):
   a__		,     a__	:						Optional[int]      		=  quadratic_roots(a=5							, b=6							, c=1   )
   print(F"""The solutions are: {solutiona} and {solutiona}"""   )


if __name__ == "__main__":
  main()








from PIL import Image






def       _A  (      lowerCamelCase							, lowerCamelCase   ):

   def brightness(lowerCamelCase   ) -> float:
      return 128 + level + (c - 128)

   if not -255.0 <= level <= 255.0:
      raise ValueError("level must be between -255.0 (black) and 255.0 (white)"   )
   return img.point(lowerCamelCase   )


if __name__ == "__main__":
  # Load image
  with Image.open("""image_data/lena.jpg""") as img:
    # Change brightness to 100
    SCREAMING_SNAKE_CASE__       :			List[str]			      =						change_brightness(img, 1_0_0)
    brigt_img.save("""image_data/lena_brightness.png""", format="""png""")

