
"""simple docstring"""





from PIL import Image



def 						_lowerCAmelCase				(				UpperCamelCase_  ,				UpperCamelCase_				):

		def brightness(UpperCamelCase_				) -> 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(UpperCamelCase_				)


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






"""simple docstring"""





def 						_lowerCAmelCase				(				UpperCamelCase_ = 100				):
		__SCREAMING_SNAKE_CASE            = 0
		__SCREAMING_SNAKE_CASE            = 0
		for i in range(1  ,				n + 1				):
				sum_of_squares += i**2
				sum_of_ints += i
		return sum_of_ints**2 - sum_of_squares


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




