
from cva import destroyAllWindows, imread, imshow, waitKey


def    A (      lowercase				)     ->						str:
		'''simple docstring'''

		UpperCamelCase			,						UpperCamelCase						=  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						=  [255, 255, 255] - img[i][j]

		return img


if __name__ == "__main__":
					# read original image
					_UpperCAmelCase      :				Tuple          = imread("image_data/lena.jpg", 1)

					# convert to its negative
					_UpperCAmelCase      :				Tuple          = convert_to_negative(img)

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




import re


def    A (      lowercase				)     ->						str:
		'''simple docstring'''

		if len(re.findall('[ATCG]'					, lowercase				)				) != len(lowercase				):
				raise ValueError('Invalid Strand'				)

		return dna.translate(dna.maketrans('ATCG'					, 'TAGC'				)				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
