






"""simple docstring"""







from cva import destroyAllWindows, imread, imshow, waitKey






def       _lowerCAmelCase       (      lowerCAmelCase		):







       '''simple docstring'''
       # getting number of pixels in the image
       UpperCAmelCase    ,       UpperCAmelCase	    =			img.shape[0], img.shape[1]

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

       return img


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

 # convert to its negative
 lowerCAmelCase_	:    Union[str, Any]            =      convert_to_negative(img)

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








"""simple docstring"""







import random
from typing import Any






def       _lowerCAmelCase       (      lowerCAmelCase		):







       '''simple docstring'''
       for _ in range(len(lowerCAmelCase		)		):
              UpperCAmelCase	    =			random.randint(0	,      len(lowerCAmelCase		) - 1		)
              UpperCAmelCase	    =			random.randint(0	,      len(lowerCAmelCase		) - 1		)
              UpperCAmelCase    ,       UpperCAmelCase	    =			data[b], data[a]
       return data


if __name__ == "__main__":
 lowerCAmelCase_	:    Tuple            =      [0, 1, 2, 3, 4, 5, 6, 7]
 lowerCAmelCase_	:    List[str]            =      ['''python''', '''says''', '''hello''', '''!''']
 print('''Fisher-Yates Shuffle:''')
 print('''List''', integers, strings)
 print('''FY Shuffle''', fisher_yates_shuffle(integers), fisher_yates_shuffle(strings))
