






'''simple docstring'''



from PIL import Image


def 							lowercase_				(    __A :       Image					,      __A :       float			)       ->      Image:



 """simple docstring"""




 def brightness(__A :       int			) -> float:
  return 1_2_8 + level + (c - 1_2_8)

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


if __name__ == "__main__":
      # Load image
      with Image.open('image_data/lena.jpg') as img:
            # Change brightness to 100
            SCREAMING_SNAKE_CASE						=	change_brightness(img, 100)
            brigt_img.save('image_data/lena_brightness.png', format='png')











'''simple docstring'''



def 							lowercase_				(    __A :       int = 6_0_0_8_5_1_4_7_5_1_4_3			)       ->      int:



 """simple docstring"""




 try:
  lowercase					:   Any				  =int(__A			)
 except (TypeError, ValueError):
  raise TypeError('''Parameter n must be int or castable to int.'''			)
 if n <= 0:
  raise ValueError('''Parameter n must be greater than or equal to one.'''			)
 lowercase					:   Optional[Any]				  =1
 lowercase					:   Dict				  =2
 while i * i <= n:
  while n % i == 0:
   lowercase					:   Optional[int]				  =i
   n //= i
  i += 1
 if n > 1:
  lowercase					:   Dict				  =n
 return int(__A			)


if __name__ == "__main__":
      print(f"""{solution() = }""")



