




'''simple docstring'''
def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_     )		->		int:
			A_									= abs(SCREAMING_SNAKE_CASE_     )
			A_									= 0
			while n > 0:
						res += n % 10
						n //= 10
			return res





def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_     )		->		int:
			A_									= abs(SCREAMING_SNAKE_CASE_     )
			return n if n < 10 else n % 10 + sum_of_digits(n // 10     )





def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_     )		->		int:
			return sum(int(SCREAMING_SNAKE_CASE_     ) for c in str(abs(SCREAMING_SNAKE_CASE_     )     )     )





def 			lowerCamelCase(							)		->		None:
			from collections.abc import Callable
			from timeit import timeit

			def benchmark_a_function(SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     ) -> None:
						A_									= F'{func.__name__}({value})'
						A_									= timeit(F'__main__.{call}'       ,setup='import __main__'     )
						print(F'{call:56} = {func(SCREAMING_SNAKE_CASE_     )} -- {timing:.4f} seconds'     )

			for value in (26_2144, 1125_8999_0684_2624, 126_7650_6002_2822_9401_4967_0320_5376):
						for func in (sum_of_digits, sum_of_digits_recursion, sum_of_digits_compact):
									benchmark_a_function(SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     )
						print()


if __name__ == "__main__":
							import doctest

							doctest.testmod()
							benchmark()










'''simple docstring'''
from PIL import Image





def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     )		->		Image:

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


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




