






'''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'''



import re


def 							lowercase_				(    __A :       str			)       ->      bool:



 """simple docstring"""




 lowercase					:   Any				  =re.compile(R'''^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$'''			)
 if match := re.search(__A					,      __A			):
  return match.string == phone
 return False


if __name__ == "__main__":
      print(indian_phone_validator('+918827897895'))



