I want to render an array which contains a string value as a library attribute but Line number 3 throws an error.
color_maps = ['AUTUMN','BONE', 'COOL', 'HOT', 'HSV', 'JET', 'OCEAN', 'PINK', 'RAINBOW','SPRING', 'SUMMER', 'WINTER']
image = cv2.imread('hurricane katrina 1.png', cv2.IMREAD_GRAYSCALE)
image_color_map = cv2.applyColorMap(image, cv2."COLORMAP_" + color_maps[0])
How will I do that in Python?