



'''simple docstring'''




from cva import destroyAllWindows, imread, imshow, waitKey



def    __lowerCamelCase						(      _lowercase	)   ->    Tuple:
							# getting number of pixels in the image
							UpperCAmelCase  :	List[Any]							  =	img.shape[0], img.shape[1]

							# converting each pixel's color to its negative
							for i in range(_lowercase	):
														for j in range(_lowercase	):
																					UpperCAmelCase  :	int							  =	[2_5_5, 2_5_5, 2_5_5] - img[i][j]

							return img


if __name__ == "__main__":
							# read original image
							a     :    Optional[int]      						=					imread("""image_data/lena.jpg""", 1)

							# convert to its negative
							a     :    List[str]      						=					convert_to_negative(img)

							# show result image
							imshow("""negative of original image""", img)
							waitKey(0)
							destroyAllWindows()






'''simple docstring'''




def    __lowerCamelCase						(      _lowercase = "The quick brown fox jumps over the lazy dog"			,       )   ->    bool:
							UpperCAmelCase  :	Union[str, Any]							  =	set()

							# Replace all the whitespace in our sentence
							UpperCAmelCase  :	List[str]							  =	input_str.replace(""" """			,       """"""	)
							for alpha in input_str:
														if "a" <= alpha.lower() <= "z":
																					frequency.add(alpha.lower()	)
							return len(_lowercase	) == 2_6



def    __lowerCamelCase						(      _lowercase = "The quick brown fox jumps over the lazy dog"			,       )   ->    bool:
							UpperCAmelCase  :	Tuple							  =	[False] * 2_6
							for char in input_str:
														if char.islower():
																					UpperCAmelCase  :	Any							  =	True
														elif char.isupper():
																					UpperCAmelCase  :	Union[str, Any]							  =	True
							return all(_lowercase	)



def    __lowerCamelCase						(      _lowercase = "The quick brown fox jumps over the lazy dog"			,       )   ->    bool:
							return len({char for char in input_str.lower() if char.isalpha()}	) == 2_6



def    __lowerCamelCase						(      )   ->    None:
							from timeit import timeit

							UpperCAmelCase  :	str							  =	"""from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest"""
							print(timeit("""is_pangram()"""			,       setup=_lowercase	)	)
							print(timeit("""is_pangram_faster()"""			,       setup=_lowercase	)	)
							print(timeit("""is_pangram_fastest()"""			,       setup=_lowercase	)	)
							# 5.348480500048026, 2.6477354579837993, 1.8470395830227062
							# 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
							import doctest

							doctest.testmod()
							benchmark()

