




from PIL import Image




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





       '''simple docstring'''



       def brightness(A__       :					int	) -> 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(A__	)


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







def 					lowerCamelCase__       (						A__       :					list	):





       '''simple docstring'''



       __lowerCamelCase   =						len(A__	)
       for _ in range(A__	):
              for i in range(_ % 2  ,			arr_size - 1  ,			2	):
                     if arr[i + 1] < arr[i]:
                            __lowerCamelCase,   __lowerCamelCase   =						arr[i + 1], arr[i]

       return arr


if __name__ == "__main__":
       UpperCAmelCase_									=	list(range(10, 0, -1))
       print(f"""Original: {arr}. Sorted: {odd_even_transposition(arr)}""")

