


'''simple docstring'''



from PIL import Image


def    lowerCamelCase__   ( A     :    Image   ,     A     :    float  ):




						'''simple docstring'''






						def brightness(A     :    int  ) -> float:
												return 1_28 + level + (c - 1_28)

						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
		_lowercase    :    int			     =  change_brightness(img, 100)
		brigt_img.save("""image_data/lena_brightness.png""", format="""png""")









'''simple docstring'''



def    lowerCamelCase__   ( A     :    str  ):




						'''simple docstring'''






						assert column_title.isupper()
						UpperCAmelCase         =			0
						UpperCAmelCase         =			len(A  ) - 1
						UpperCAmelCase         =			0

						while index >= 0:
												UpperCAmelCase         =			(ord(column_title[index]  ) - 64) * pow(26   ,     A  )
												answer += value
												power += 1
												index -= 1

						return answer


if __name__ == "__main__":
	from doctest import testmod

	testmod()





