



'''simple docstring'''




def       __lowerCamelCase  (					_lowercase	,				_lowercase		)      ->			int:
							return int((input_a, input_a).count(1		) != 0		)



def       __lowerCamelCase  (					)      ->			None:
							assert or_gate(0	,				0		) == 0
							assert or_gate(0	,				1		) == 1
							assert or_gate(1	,				0		) == 1
							assert or_gate(1	,				1		) == 1


if __name__ == "__main__":
							print(or_gate(0, 1))
							print(or_gate(1, 0))
							print(or_gate(0, 0))
							print(or_gate(1, 1))






'''simple docstring'''




from PIL import Image



def       __lowerCamelCase  (					_lowercase	,				_lowercase		)      ->			Image:

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


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

