IndexError: list index out of range(For Loop, enumerate) -
i need assign colour indexes labels fro using below code giving me index error. please suggest changes in code.
formation_colours=['#f4d03f', '#f5b041'] formation_labels = ['sh', 'ss'] formation_color_map = {} ind, label in enumerate(formation_labels): formation_color_map[label] = formation_colours[ind]
Comments
Post a Comment